1
0
mirror of https://github.com/bitwarden/desktop synced 2026-01-05 18:13:59 +00:00

Use theme enum and platformUtilsService helpers (#1094)

* Use new theme enum and platformUtilsService helper

* Use theme enum

* Update jslib

* Fix linting
This commit is contained in:
Thomas Rittson
2021-10-05 06:30:09 +10:00
committed by GitHub
parent 2639d13e42
commit 15e8e5fec9
3 changed files with 16 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import { FormControl } from '@angular/forms';
import { debounceTime } from 'rxjs/operators';
import { DeviceType } from 'jslib-common/enums/deviceType';
import { ThemeType } from 'jslib-common/enums/themeType';
import { CryptoService } from 'jslib-common/abstractions/crypto.service';
import { I18nService } from 'jslib-common/abstractions/i18n.service';
@@ -134,9 +135,9 @@ export class SettingsComponent implements OnInit {
this.themeOptions = [
{ name: i18nService.t('default'), value: null },
{ name: i18nService.t('light'), value: 'light' },
{ name: i18nService.t('dark'), value: 'dark' },
{ name: 'Nord', value: 'nord' },
{ name: i18nService.t('light'), value: ThemeType.Light },
{ name: i18nService.t('dark'), value: ThemeType.Dark },
{ name: 'Nord', value: ThemeType.Nord },
];
this.clearClipboardOptions = [