Better name for theme enabler

This commit is contained in:
Lucien Cartier-Tilet 2020-05-05 12:34:56 +02:00
parent 070e8b4ba1
commit 282aea97a0
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
import './reorganize_html.dart' show reorganizeHtml;
import './theme.dart' show makeThemeChanger, setTheme;
import './theme.dart' show enableThemeChanger, setTheme;
Future<void> main() async {
await setTheme();
await reorganizeHtml().then((_) {
makeThemeChanger();
enableThemeChanger();
});
}

View File

@ -23,7 +23,7 @@ final localStorage = window.localStorage;
var currentTheme = themes[localStorage['theme']];
void makeThemeChanger() {
void enableThemeChanger() {
final darkBtn = querySelector('#darkBtn');
final lightBtn = querySelector('#lightBtn');
final blackBtn = querySelector('#blackBtn');