@@ -3,6 +3,7 @@ import appSettings from "lib/settings";
33import { isDeviceDarkTheme } from "lib/systemConfiguration" ;
44import { createBuiltInTheme } from "./builder" ;
55import { apply , update } from "./list" ;
6+ import color from "utils/color" ;
67
78const WHITE = "rgb(255, 255, 255)" ;
89const BLACK = "rgb(0, 0, 0)" ;
@@ -187,7 +188,9 @@ export function updateSystemTheme(darkTheme) {
187188 system . popupBackgroundColor = "rgb(49, 49, 49)" ;
188189 system . popupTextColor = WHITE ;
189190 system . popupActiveColor = "rgb(255, 215, 0)" ;
191+ system . type = "dark"
190192 } else {
193+ system . type = "light"
191194 system . darkenedPrimaryColor = "rgb(153, 153, 153)" ;
192195 system . primaryColor = WHITE ;
193196 system . primaryTextColor = "rgb(51, 62, 89)" ;
@@ -206,7 +209,7 @@ export function updateSystemTheme(darkTheme) {
206209 }
207210
208211 if ( appSettings . value . appTheme . toLowerCase ( ) === "system" ) {
209- apply ( system . id , true ) ;
212+ apply ( system . id , true ) ;
210213 }
211214}
212215
0 commit comments