Better name for theme enabler
This commit is contained in:
parent
070e8b4ba1
commit
282aea97a0
@ -1,9 +1,9 @@
|
|||||||
import './reorganize_html.dart' show reorganizeHtml;
|
import './reorganize_html.dart' show reorganizeHtml;
|
||||||
import './theme.dart' show makeThemeChanger, setTheme;
|
import './theme.dart' show enableThemeChanger, setTheme;
|
||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
await setTheme();
|
await setTheme();
|
||||||
await reorganizeHtml().then((_) {
|
await reorganizeHtml().then((_) {
|
||||||
makeThemeChanger();
|
enableThemeChanger();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ final localStorage = window.localStorage;
|
|||||||
|
|
||||||
var currentTheme = themes[localStorage['theme']];
|
var currentTheme = themes[localStorage['theme']];
|
||||||
|
|
||||||
void makeThemeChanger() {
|
void enableThemeChanger() {
|
||||||
final darkBtn = querySelector('#darkBtn');
|
final darkBtn = querySelector('#darkBtn');
|
||||||
final lightBtn = querySelector('#lightBtn');
|
final lightBtn = querySelector('#lightBtn');
|
||||||
final blackBtn = querySelector('#blackBtn');
|
final blackBtn = querySelector('#blackBtn');
|
||||||
|
Reference in New Issue
Block a user