style(themes): rename dark to black

This commit is contained in:
plebeius.eth
2023-10-14 16:14:56 +02:00
parent 1cf3a440a1
commit ff9431ccf5
5 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
"header_top": "top",
"account_bar_preferences": "preferences",
"account_bar_language": "English",
"dark": "dark",
"black": "black",
"light": "light",
"topbar_my_subs": "my communities",
"topbar_edit": "edit",

View File

@@ -6,7 +6,7 @@
"header_top": "più votati",
"account_bar_preferences": "preferenze",
"account_bar_language": "Italiano",
"dark": "scuro",
"black": "scuro",
"light": "chiaro",
"topbar_my_subs": "le mie comunità",
"topbar_edit": "modifica",

View File

@@ -14,7 +14,7 @@ const Header: FC = () => {
const [theme] = useTheme();
const [selected, setSelected] = useState(sortType || '/topMonth');
const logoSrc = theme === 'dark' ? '/assets/logo/logo-dark.png' : '/assets/logo/logo-light.png';
const logoSrc = theme === 'black' ? '/assets/logo/logo-dark.png' : '/assets/logo/logo-light.png';
const labels = [t('header_hot'), t('header_new'), t('header_rising'), t('header_controversial'), t('header_top')];
useEffect(() => {

View File

@@ -10,7 +10,7 @@ const Theme: FC = () => {
<div style={{ padding: '5px' }}>
<select value={theme} onChange={(e) => setTheme(e.target.value)}>
<option value='light'>{t('light')}</option>
<option value='dark'>{t('dark')}</option>
<option value='black'>{t('black')}</option>
</select>
</div>
);

View File

@@ -14,7 +14,7 @@
--icon: #c6c6c6;
}
:root .dark {
:root .black {
--background: #0f0f0f;
--background-primary: #1f1f1f;
--background-secondary: #3e3e3e;