Theming: Make new theme exposed by ThemeContext and make new theme include v1 for compatability (to pass to useTheme) (#33207)

* WIP: Making new theme the default

* Progress

* Updates, lots of updates

* Things are working

* Fixed issues with storybook

* Fixed tests
This commit is contained in:
Torkel Ödegaard
2021-04-21 14:25:43 +02:00
committed by GitHub
parent 569fb3f112
commit 7e2bf4f6c3
111 changed files with 1505 additions and 1534 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import {
FeatureToggles,
GrafanaConfig,
GrafanaTheme,
GrafanaThemeType,
LicenseInfo,
PanelPluginMeta,
systemDateFormats,
@@ -76,7 +75,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
awsAssumeRoleEnabled = false;
constructor(options: GrafanaBootConfig) {
this.theme = options.bootData.user.lightTheme ? getTheme(GrafanaThemeType.Light) : getTheme(GrafanaThemeType.Dark);
this.theme = getTheme(options.bootData.user.lightTheme ? 'light' : 'dark');
const defaults = {
datasources: {},