mirror of
https://github.com/bitwarden/browser
synced 2026-02-14 23:45:37 +00:00
* [refactor] Introduce ThemingService * [refactor] Implement ThemingService for web * [refactor] Implement ThemingService on browser * [refactor] Implement ThemingService for desktop * [refactor] Remove deprecated platformUtils.service theme methods * [fix] Move ThemingService from libs/common to libs/angular * [fix] Simplify ThemeBuilder's constructor * [fix] Dont notify subscribers of null values from theme$ * [fix] Always notify PaymentComponent of theme changes
13 lines
373 B
TypeScript
13 lines
373 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
import { ThemeType } from "@bitwarden/common/enums/themeType";
|
|
|
|
import { Theme } from "./theme";
|
|
|
|
export abstract class AbstractThemingService {
|
|
theme$: Observable<Theme>;
|
|
monitorThemeChanges: () => Promise<void>;
|
|
updateSystemTheme: (systemTheme: ThemeType) => void;
|
|
updateConfiguredTheme: (theme: ThemeType) => Promise<void>;
|
|
}
|