Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Apr 3, 2024
1 parent 1de0738 commit e8b59a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
1 change: 1 addition & 0 deletions src/main/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const keyboardShortcuts: KeyboardShortcut[] = [
// Quit
{
action: 'quit',
allowUnbind: true,
fn() {
app.quit();
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Separator } from '@/components/ui/separator';
import { SettingsType } from '@/config/settings';
import { InputComboboxForm } from '@/renderer/components/input/InputComboboxForm';
import { InputSelectForm } from '@/renderer/components/input/InputSelectForm';
import { InputSwitch } from '@/renderer/components/input/InputSwitch';
import { useGlobalContext } from '@/renderer/context/global-context';

Expand All @@ -21,55 +19,7 @@ export function SettingsApplication() {
</p>
</div>
<Separator />
<InputComboboxForm
items={[
{
value: 'light',
label: 'Light',
},
{
value: 'dark',
label: 'Dark',
},
{
value: 'system',
label: 'System',
},
]}
value={settings.theme}
onChange={(value) => {
if (value !== 'system' && value !== 'light' && value !== 'dark') {
return;
}

handleChangeSetting({ theme: value });
}}
label="Theme"
description="Select your preferred theme."
/>

<InputSelectForm
items={[
{
value: 'light',
label: 'Light',
},
{
value: 'dark',
label: 'Dark',
},
{
value: 'system',
label: 'System',
},
]}
value={settings.theme}
onChange={(value) => {
handleChangeSetting({ theme: value });
}}
label="Theme"
description="Select your preferred theme."
/>
<InputSwitch
value={settings.allowAutoUpdate}
onChange={() => {
Expand Down

0 comments on commit e8b59a6

Please sign in to comment.