File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
projects/igniteui-angular/src/lib/services/theme Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,13 @@ import { BehaviorSubject } from "rxjs";
44export class ThemeToken {
55 private document = inject ( DOCUMENT ) ;
66 public subject : BehaviorSubject < IgxTheme > ;
7- public variant : IgxThemeVariant ;
87
98 constructor ( private t ?: IgxTheme ) {
109 const globalTheme = globalThis . window
1110 ?. getComputedStyle ( this . document . body )
1211 . getPropertyValue ( "--ig-theme" )
1312 . trim ( ) || 'material' as IgxTheme ;
1413
15- this . variant = globalThis . window
16- ?. getComputedStyle ( this . document . body )
17- . getPropertyValue ( "--ig-theme-variant" )
18- . trim ( ) as IgxThemeVariant ;
19-
2014 const _theme = t ?? globalTheme as IgxTheme ;
2115 this . subject = new BehaviorSubject ( _theme ) ;
2216 }
@@ -50,14 +44,7 @@ const Theme = {
5044 IndigoDesign : "indigo" ,
5145} as const ;
5246
53- const ThemeVariant = /*@__PURE__ */ mkenum ( {
54- Light : "light" ,
55- Dark : "dark"
56- } ) ;
57-
5847/**
5948 * Determines the component theme.
6049 */
6150export type IgxTheme = ( typeof Theme ) [ keyof typeof Theme ] ;
62-
63- export type IgxThemeVariant = ( typeof ThemeVariant ) [ keyof typeof ThemeVariant ] ;
You can’t perform that action at this time.
0 commit comments