File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7070 </ div >
7171
7272 < script >
73- const bgColor = localStorage . getItem ( 'theme-background-color' ) || '#e4e8ed' ;
73+ const bgColor = localStorage . getItem ( 'theme-background-color' ) || (
74+ // Use dark/light theme containerBackground
75+ window . matchMedia ( "(prefers-color-scheme: dark)" )
76+ ? '#1e2028'
77+ : '#e4e8ed'
78+ ) ;
7479 document . querySelector ( 'html' ) . style . backgroundColor = bgColor ;
7580
7681 let progressElement = document . getElementById ( 'progress-logo' ) ;
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export class UiStore {
117117 // closed), but don't get reset when the app starts with stale account data.
118118 observe ( this . accountStore , 'accountDataLastUpdated' , ( ) => {
119119 if ( ! this . accountStore . isPaidUser ) {
120- this . setTheme ( 'light ' ) ;
120+ this . setTheme ( 'automatic ' ) ;
121121 }
122122 } ) ;
123123
You can’t perform that action at this time.
0 commit comments