Skip to content

Commit ba4d064

Browse files
committed
refactor tailwind classes
Signed-off-by: Adam Setch <[email protected]>
1 parent d67b86f commit ba4d064

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/renderer/context/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import {
4646
import { Constants } from '../utils/constants';
4747
import { getNotificationCount } from '../utils/notifications';
4848
import { clearState, loadState, saveState } from '../utils/storage';
49+
import { setTheme } from '../utils/theme';
4950
import { zoomPercentageToLevel } from '../utils/zoom';
5051

5152
export const defaultAuth: AuthState = {
@@ -138,6 +139,10 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
138139
restoreSettings();
139140
}, []);
140141

142+
useEffect(() => {
143+
setTheme(settings.theme);
144+
}, [settings.theme]);
145+
141146
// biome-ignore lint/correctness/useExhaustiveDependencies: We only want fetchNotifications to be called for account changes
142147
useEffect(() => {
143148
fetchNotifications({ auth, settings });

src/renderer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99

1010
<body>
11-
<div id="root"></div>
11+
<div id="root" class="text-gitify-font bg-gitify-background"></div>
1212
</body>
1313
</html>

tailwind.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const config: Config = {
1717
*/
1818
primer: {
1919
attention: '#9a6700',
20-
closed: '#d1242f',
20+
closed: '#cf222e',
2121
done: '#8250df',
2222
muted: '#59636e',
23-
open: '#1a7f37',
23+
open: '#1f883d',
2424
},
2525
gitify: {
2626
background: 'var(--color-gitify-background)',

0 commit comments

Comments
 (0)