Skip to content

Commit 84a8f6c

Browse files
committed
fix: Theme Buttons: wider border and more contrast background
1 parent 2a8b98a commit 84a8f6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/xen-tg-app/src/components/ThemeButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ThemeButton = () => {
1313
<div className="flex w-full grow gap-2.5 p-1 select-none">
1414
<div className="flex w-full grow flex-col items-center justify-center gap-1.5">
1515
<button
16-
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl border p-1 backdrop-blur-3xl backdrop-opacity-80 select-none ${theme === 'system' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'system' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
16+
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl ${theme === 'system' ? 'backdrop-brightness-150' : 'backdrop-brightness-100'} ${theme === 'system' ? 'dark:backdrop-brightness-50' : 'dark:backdrop-brightness-100'} ${theme === 'system' ? 'border-2' : 'border'} ${theme === 'system' ? 'backdrop-blur-3xl' : 'backdrop-blur-none'} p-1 backdrop-opacity-80 select-none ${theme === 'system' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'system' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
1717
onClick={() => setTheme('system')}
1818
>
1919
<DesktopIcon />
@@ -22,7 +22,7 @@ const ThemeButton = () => {
2222
</div>
2323
<div className="flex w-full grow flex-col items-center justify-center gap-1.5">
2424
<button
25-
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl border p-1 backdrop-blur-3xl backdrop-opacity-80 select-none ${theme === 'dark' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'dark' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
25+
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl ${theme === 'dark' ? 'backdrop-brightness-150' : 'backdrop-brightness-100'} ${theme === 'dark' ? 'dark:backdrop-brightness-50' : 'dark:backdrop-brightness-100'} ${theme === 'dark' ? 'border-2' : 'border'} p-1 ${theme === 'dark' ? 'backdrop-blur-3xl' : 'backdrop-blur-none'} backdrop-opacity-80 select-none ${theme === 'dark' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'dark' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
2626
onClick={() => setTheme('dark')}
2727
>
2828
<MoonIcon />
@@ -31,7 +31,7 @@ const ThemeButton = () => {
3131
</div>
3232
<div className="flex w-full grow flex-col items-center justify-center gap-1.5">
3333
<button
34-
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl border p-1 backdrop-blur-3xl backdrop-opacity-80 select-none ${theme === 'light' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'light' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
34+
className={`flex h-20 w-full max-w-30 grow cursor-pointer items-center justify-center rounded-xl ${theme === 'light' ? 'backdrop-brightness-150' : 'backdrop-brightness-100'} ${theme === 'light' ? 'dark:backdrop-brightness-50' : 'dark:backdrop-brightness-100'} ${theme === 'light' ? 'border-2' : 'border'} p-1 ${theme === 'light' ? 'backdrop-blur-3xl' : 'backdrop-blur-none'} backdrop-opacity-80 select-none ${theme === 'light' ? 'text-(--color-my-primary)' : 'text-(--color-gray-text)'} ${theme === 'light' ? 'border-(--color-my-primary)' : 'border-(--color-gray-text)'}`}
3535
onClick={() => setTheme('light')}
3636
>
3737
<SunIcon />

0 commit comments

Comments
 (0)