theme - statusbar, icons

This commit is contained in:
Jan Prochazka
2020-11-12 14:51:27 +01:00
parent a8d88d05db
commit f30e7da503
12 changed files with 72 additions and 73 deletions

View File

@@ -2,7 +2,7 @@ import fillTheme from './fillTheme';
const theme = {
main_type: 'dark',
main_background: '#fff',
main_background: '#444',
fontWhite1: '#ddd',
@@ -26,8 +26,7 @@ const theme = {
modal_background: '#222',
modalheader_background: '#555',
button_background: '#337ab7',
statusBarBackground: '#00c',
statusbar_background: '#00c',
};
export default fillTheme(theme);

View File

@@ -74,6 +74,10 @@ function fillThemeCore(theme) {
fillOne(theme, name, type, add, background, 'fontWhite', 'fontBlack', lightenByTenth, presetDarkPalettes);
}
}
if (add.main_type == 'dark') add.main_palettes = presetDarkPalettes;
else add.main_palettes = presetPalettes;
return {
...add,
...theme,

View File

@@ -25,8 +25,7 @@ const theme = {
modal_background: '#fff',
modalheader_background: '#eff',
button_background: '#337ab7',
statusBarBackground: '#00c',
statusbar_background: '#00c',
};
export default fillTheme(theme);