mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
made holy light theme default
This commit is contained in:
1 parent
54a3b3b8be
commit
1725b91661
4 files changed
+12
-12
No files matched your search
@@ -167,7 +167,7 @@ const GlobalSearch = () => {
|
||||
|
||||
const App: React.FC = () => {
|
||||
const { i18n, t } = useTranslation();
|
||||
const [themeName, setThemeName] = useState<CatppuccinTheme>((localStorage.getItem('theme') as CatppuccinTheme) || 'holy_dark');
|
||||
const [themeName, setThemeName] = useState<CatppuccinTheme>((localStorage.getItem('theme') as CatppuccinTheme) || 'holy_light');
|
||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||
const [catAnchorEl, setCatAnchorEl] = useState<null | HTMLElement>(null);
|
||||
const [categories, setCategories] = useState<{name: string, slug: string}[]>([]);
|
||||
|
||||
@@ -199,8 +199,8 @@ const Settings: React.FC<SettingsProps> = ({ themeName, onThemeChange }) => {
|
||||
onChange={(e) => onThemeChange(e.target.value as CatppuccinTheme)}
|
||||
>
|
||||
<ListSubheader>Holy Energy</ListSubheader>
|
||||
<MenuItem value="holy_dark">Holy Dark (Default)</MenuItem>
|
||||
<MenuItem value="holy_light">Holy Light</MenuItem>
|
||||
<MenuItem value="holy_light">Holy Light (Default)</MenuItem>
|
||||
<MenuItem value="holy_dark">Holy Dark</MenuItem>
|
||||
|
||||
<ListSubheader>Light Themes</ListSubheader>
|
||||
<MenuItem value="latte">Latte</MenuItem>
|
||||
|
||||
@@ -139,15 +139,15 @@ export const getTheme = (mode: CatppuccinTheme) => {
|
||||
palette = flavor.colors;
|
||||
} else {
|
||||
palette = {
|
||||
base: { hex: '#0f0f0f' },
|
||||
surface0: { hex: '#1a1a1a' },
|
||||
crust: { hex: '#000000' },
|
||||
text: { hex: '#ffffff' },
|
||||
subtext0: { hex: '#a0a0a0' },
|
||||
mauve: { hex: '#9d4edd' },
|
||||
pink: { hex: '#ff4dff' },
|
||||
base: { hex: '#ffffff' },
|
||||
surface0: { hex: '#f8f9fa' },
|
||||
crust: { hex: '#e9ecef' },
|
||||
text: { hex: '#1a1a1a' },
|
||||
subtext0: { hex: '#6c757d' },
|
||||
mauve: { hex: '#8a2be2' },
|
||||
pink: { hex: '#ff00ff' },
|
||||
};
|
||||
mode = 'holy_dark';
|
||||
mode = 'holy_light';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user