Adrià Vilanova MartÃnez | 917797e | 2024-05-25 22:41:25 +0200 | [diff] [blame] | 1 | import Feature from '../../common/architecture/features/Feature'; |
| 2 | import { ConcreteScript } from '../../common/architecture/scripts/Script'; |
| 3 | import { OptionCodename } from '../../common/options/optionsPrototype'; |
| 4 | import InjectAutoDarkTheme from './scripts/injectAutoDarkTheme.script'; |
| 5 | import InjectForcedDarkTheme from './scripts/injectForcedDarkTheme.script'; |
| 6 | import CCDarkThemeNodeWatcherScript from './scripts/nodeWatcher.script'; |
| 7 | |
| 8 | export default class CCDarkThemeFeature extends Feature { |
| 9 | public readonly scripts: ConcreteScript[] = [ |
| 10 | InjectAutoDarkTheme, |
| 11 | InjectForcedDarkTheme, |
| 12 | CCDarkThemeNodeWatcherScript, |
| 13 | ]; |
| 14 | |
| 15 | readonly codename = 'darkTheme'; |
| 16 | readonly relatedOptions: OptionCodename[] = [ |
| 17 | 'ccdarktheme', |
| 18 | 'ccdarktheme_mode', |
| 19 | 'ccdarktheme_switch_status', |
| 20 | ]; |
| 21 | } |