mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
(cherry picked from commit eeb31c2901
)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
parent
6c38c502a9
commit
6e680cac8f
@ -97,13 +97,16 @@ export function quantizeScheme(opts: HeatmapColorOptions, theme: GrafanaTheme2):
|
||||
}
|
||||
|
||||
if (
|
||||
opts.reverse ||
|
||||
scheme.invert === 'always' ||
|
||||
(scheme.invert === 'dark' && theme.isDark) ||
|
||||
(scheme.invert === 'light' && theme.isLight)
|
||||
) {
|
||||
palette.reverse();
|
||||
}
|
||||
|
||||
if (opts.reverse) {
|
||||
palette.reverse();
|
||||
}
|
||||
}
|
||||
|
||||
return palette;
|
||||
|
Loading…
Reference in New Issue
Block a user