1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-10 12:33:26 +00:00

[PM-11691] Remove Nord and Solarized Dark from extension (#11013)

* remove nord and solarized dark from AppearanceV2 component
- This component already behind the extension refresh feature flag

* update the users theme to system when nord or solarized dark is selected

* For desktop, still allow all theme types by overriding the default theme service.

* change theme on the fly rather than updating local state.

- When the feature flag is removed then a migration will have to take place
This commit is contained in:
Nick Krantz
2024-09-19 10:55:40 -05:00
committed by GitHub
parent afff91e0f3
commit 01e530d02b
7 changed files with 62 additions and 11 deletions

View File

@@ -610,8 +610,6 @@ export default class MainBackground {
migrationRunner,
);
this.themeStateService = new DefaultThemeStateService(this.globalStateProvider);
this.masterPasswordService = new MasterPasswordService(
this.stateProvider,
this.stateService,
@@ -785,6 +783,11 @@ export default class MainBackground {
this.authService,
);
this.themeStateService = new DefaultThemeStateService(
this.globalStateProvider,
this.configService,
);
this.bulkEncryptService = new FallbackBulkEncryptService(this.encryptService);
this.cipherService = new CipherService(

View File

@@ -59,8 +59,6 @@ export class AppearanceV2Component implements OnInit {
{ name: i18nService.t("systemDefault"), value: ThemeType.System },
{ name: i18nService.t("light"), value: ThemeType.Light },
{ name: i18nService.t("dark"), value: ThemeType.Dark },
{ name: "Nord", value: ThemeType.Nord },
{ name: i18nService.t("solarizedDark"), value: ThemeType.SolarizedDark },
];
}