kibana/x-pack/packages/ml/kibana_theme
Dima Arnautov c5eee26671
[ML] Apply theme based on the User Profile settings (#158258)
## Summary

With the release of Per User Dark Mode, code should no longer rely on
calling `uiSettings` to determine which theme Kibana is displayed with.

With theme settings now configurable from User Profiles and Adv.
Settings, the code that was calling uiSettings to determine the Kibana
theme will not take into account which theme is currently being
displayed.


Applies an appropriate EUI theme based on the profile settings. In
particular for the following components:
- Anomaly swim lane (Fixes #158155 )
- Job tree map view (Fixes
https://github.com/elastic/kibana/issues/158304)
- Charts-related theme settings, e.g. the Single Metric Viewer
2023-05-25 11:57:48 +02:00
..
src [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
index.ts [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
jest.config.js [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
kibana.jsonc [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
package.json [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
README.md [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00
tsconfig.json [ML] Apply theme based on the User Profile settings (#158258) 2023-05-25 11:57:48 +02:00

@kbn/ml-kibana-theme

Provides hooks to retrieve currently applied theme and EUI theme variables.