-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): lib page enocide bg image uri
- Loading branch information
Showing
6 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/features/settings/components/tabs/general/settings/title-bar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { SettingsTitleBarStyle } from "@/@types"; | ||
import { Button } from "@/components/ui/button"; | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuLabel, | ||
DropdownMenuRadioGroup, | ||
DropdownMenuRadioItem, | ||
DropdownMenuSeparator, | ||
DropdownMenuTrigger, | ||
} from "@/components/ui/dropdown-menu"; | ||
import { useSettings } from "@/hooks"; | ||
|
||
const TitleBarDropdown = () => { | ||
const { settings, updateSetting } = useSettings(); | ||
|
||
return ( | ||
<DropdownMenu> | ||
<DropdownMenuTrigger asChild> | ||
<Button variant="outline" className="w-full capitalize"> | ||
{settings?.titleBarStyle} | ||
</Button> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent className="w-full"> | ||
<DropdownMenuLabel>Title Bar Style</DropdownMenuLabel> | ||
<DropdownMenuSeparator /> | ||
<DropdownMenuRadioGroup | ||
value={settings?.titleBarStyle} | ||
onValueChange={(value) => | ||
updateSetting("titleBarStyle", value as SettingsTitleBarStyle) | ||
} | ||
> | ||
<DropdownMenuRadioItem value="native">Native</DropdownMenuRadioItem> | ||
<DropdownMenuRadioItem value="icons">Icons</DropdownMenuRadioItem> | ||
<DropdownMenuRadioItem value="traffic-lights"> | ||
Traffic Lights | ||
</DropdownMenuRadioItem> | ||
<DropdownMenuRadioItem value="none">None</DropdownMenuRadioItem> | ||
</DropdownMenuRadioGroup> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
); | ||
}; | ||
|
||
export default TitleBarDropdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters