Skip to content

Commit ccff686

Browse files
committed
[dashboard] Update theme preference selector
1 parent ebcd8ad commit ccff686

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

components/dashboard/src/settings/Preferences.tsx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,34 @@ export default function Preferences() {
4848
<p className="text-base text-gray-500">Choose which IDE you want to use.</p>
4949
<div className="mt-4 space-x-4 flex">
5050
<SelectableCard className="w-36 h-40" title="VS Code" selected={defaultIde === 'code'} onClick={() => actuallySetDefaultIde('code')}>
51-
<div className="flex-grow flex justify-center align-center">
51+
<div className="flex-grow flex justify-center items-center">
5252
<img className="w-16 filter-grayscale" src={vscode}/>
5353
</div>
5454
</SelectableCard>
5555
<SelectableCard className="w-36 h-40" title="Theia" selected={defaultIde === 'theia'} onClick={() => actuallySetDefaultIde('theia')}>
56-
<div className="flex-grow flex justify-center align-center">
56+
<div className="flex-grow flex justify-center items-center">
5757
<img className="w-16 dark:filter-invert" src={theia}/>
5858
</div>
5959
</SelectableCard>
6060
</div>
6161
<h3 className="mt-12">Theme</h3>
62-
<p className="text-base text-gray-500">Light or dark?</p>
62+
<p className="text-base text-gray-500">Early bird or night owl? Choose your side.</p>
6363
<div className="mt-4 space-x-4 flex">
64-
<label><input type="radio" name="theme" value="system" checked={theme === 'system'} onChange={() => actuallySetTheme('system')}></input> System</label>
65-
<label><input type="radio" name="theme" value="dark" checked={theme === 'dark'} onChange={() => actuallySetTheme('dark')}></input> Dark</label>
66-
<label><input type="radio" name="theme" value="light" checked={theme === 'light'} onChange={() => actuallySetTheme('light')}></input> Light</label>
64+
<SelectableCard className="w-36 h-32" title="Light" selected={theme === 'light'} onClick={() => actuallySetTheme('light')}>
65+
<div className="flex-grow flex justify-center items-end">
66+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#C4C4C4" rx="8"/><rect width="32" height="16" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="24" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="48" fill="#C4C4C4" rx="8"/></svg>
67+
</div>
68+
</SelectableCard>
69+
<SelectableCard className="w-36 h-32" title="Dark" selected={theme === 'dark'} onClick={() => actuallySetTheme('dark')}>
70+
<div className="flex-grow flex justify-center items-end">
71+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#737373" rx="8"/><rect width="32" height="16" fill="#737373" rx="8"/><rect width="32" height="16" y="24" fill="#737373" rx="8"/><rect width="32" height="16" y="48" fill="#737373" rx="8"/></svg>
72+
</div>
73+
</SelectableCard>
74+
<SelectableCard className="w-36 h-32" title="System" selected={theme === 'system'} onClick={() => actuallySetTheme('system')}>
75+
<div className="flex-grow flex justify-center items-end">
76+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#C4C4C4" rx="8"/><path fill="#737373" d="M74.111 3.412A8 8 0 0180.665 0H100a8 8 0 018 8v24a8 8 0 01-8 8H48.5L74.111 3.412z"/><rect width="32" height="16" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="24" fill="#737373" rx="8"/><rect width="32" height="16" y="48" fill="#C4C4C4" rx="8"/></svg>
77+
</div>
78+
</SelectableCard>
6779
</div>
6880
</PageWithSubMenu>
6981
</div>;

0 commit comments

Comments
 (0)