add type annotations, improve ui

This commit is contained in:
marlon-erler
2026-04-13 11:23:17 +00:00
parent 537592fae9
commit 6dff4a74eb
21 changed files with 100 additions and 57 deletions
+5 -2
View File
@@ -64,7 +64,7 @@ export default class SettingsViewModel extends Context {
// view
applyTheme = (): void => {
let theme = this.theme.value;
let theme: string = this.theme.value;
if (theme == ThemeSettings.System) {
theme = SettingsViewModel.getSystemTheme();
}
@@ -100,7 +100,10 @@ export default class SettingsViewModel extends Context {
);
// keystrokes
this.registerKeyStroke(CommonKeys.CloseOrCancel, this.hideSettingsModal);
this.registerKeyStroke(
CommonKeys.CloseOrCancel,
this.hideSettingsModal,
);
}
static generateThemeMedia(): MediaQueryList {