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

View File

@@ -1,4 +1,4 @@
import { BusEventBase, BusEventWithPayload, eventFactory, GrafanaTheme, TimeRange } from '@grafana/data';
import { BusEventBase, BusEventWithPayload, eventFactory, GrafanaThemeV2, TimeRange } from '@grafana/data';
import { IconName } from '@grafana/ui';
/**
@@ -145,7 +145,7 @@ export class RenderEvent extends BusEventBase {
static type = 'render';
}
export class ThemeChangedEvent extends BusEventWithPayload<GrafanaTheme> {
export class ThemeChangedEvent extends BusEventWithPayload<GrafanaThemeV2> {
static type = 'theme-changed';
}