-
- Downloads
Make EC widget theme reactive - Update widget url when the theme changes (#12295)
* update widget url when the theme changes Signed-off-by:Timo K <toger5@hotmail.de> * quick "make it EC specific" workaround proposal. Signed-off-by:
Timo K <toger5@hotmail.de> * use `matches` Signed-off-by:
Timo K <toger5@hotmail.de> * test coverage Signed-off-by:
Timo K <toger5@hotmail.de> * more test coverage Signed-off-by:
Timo K <toger5@hotmail.de> * fix jest Signed-off-by:
Timo K <toger5@hotmail.de> * add tests for theme changes Signed-off-by:
Timo K <toger5@hotmail.de> * update snapshots Signed-off-by:
Timo K <toger5@hotmail.de> * test for theme update with non ec widget Signed-off-by:
Timo K <toger5@hotmail.de> * add dark custom theme widget url Signed-off-by:
Timo K <toger5@hotmail.de> * trigger conditions for theme cleanup Signed-off-by:
Timo K <toger5@hotmail.de> * update tests using testId Signed-off-by:
Timo K <toger5@hotmail.de> * use typed event emitter for theme watcher Signed-off-by:
Timo K <toger5@hotmail.de> * simplify condition Signed-off-by:
Timo K <toger5@hotmail.de> --------- Signed-off-by:
Timo K <toger5@hotmail.de>
Showing
- src/components/views/elements/AppTile.tsx 31 additions, 7 deletionssrc/components/views/elements/AppTile.tsx
- src/settings/watchers/ThemeWatcher.ts 12 additions, 1 deletionsrc/settings/watchers/ThemeWatcher.ts
- src/stores/widgets/StopGapWidget.ts 8 additions, 2 deletionssrc/stores/widgets/StopGapWidget.ts
- src/theme.ts 1 addition, 1 deletionsrc/theme.ts
- test/components/views/elements/AppTile-test.tsx 77 additions, 2 deletionstest/components/views/elements/AppTile-test.tsx
- test/components/views/elements/__snapshots__/AppTile-test.tsx.snap 4 additions, 0 deletions...onents/views/elements/__snapshots__/AppTile-test.tsx.snap
- test/stores/widgets/StopGapWidget-test.ts 39 additions, 10 deletionstest/stores/widgets/StopGapWidget-test.ts
Loading