mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 10:14:31 -05:00
fix: open color scheme tab matching current colorSchemeMode setting
This commit is contained in:
@@ -12,6 +12,11 @@ export class ColorSchemeSettingsTabComponent {
|
||||
platform: PlatformService,
|
||||
public config: ConfigService,
|
||||
) {
|
||||
this.defaultTab = platform.getTheme()
|
||||
const mode = this.config.store.appearance.colorSchemeMode
|
||||
if (mode === 'dark' || mode === 'light') {
|
||||
this.defaultTab = mode
|
||||
} else {
|
||||
this.defaultTab = platform.getTheme()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user