mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
Fix black-on-black metric name color in dark mode (#11572)
The color should not be set explicitly at all. That way it simply inherits the theme's default color, as before https://github.com/prometheus/prometheus/pull/11068. Fixes https://github.com/prometheus/prometheus/issues/11568 Signed-off-by: Julius Volz <julius.volz@gmail.com> Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
965274259f
commit
1eb327b99b
|
@ -1,5 +1,5 @@
|
|||
import { EditorView } from '@codemirror/view';
|
||||
import { HighlightStyle } from '@codemirror/language';
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { tags } from '@lezer/highlight';
|
||||
|
||||
export const baseTheme = EditorView.theme({
|
||||
|
@ -263,7 +263,6 @@ export const darkTheme = EditorView.theme(
|
|||
);
|
||||
|
||||
export const promqlHighlighter = HighlightStyle.define([
|
||||
{ tag: tags.name, color: '#000' },
|
||||
{ tag: tags.number, color: '#09885a' },
|
||||
{ tag: tags.string, color: '#a31515' },
|
||||
{ tag: tags.keyword, color: '#008080' },
|
||||
|
@ -279,7 +278,6 @@ export const promqlHighlighter = HighlightStyle.define([
|
|||
]);
|
||||
|
||||
export const darkPromqlHighlighter = HighlightStyle.define([
|
||||
{ tag: tags.name, color: '#000' },
|
||||
{ tag: tags.number, color: '#22c55e' },
|
||||
{ tag: tags.string, color: '#fca5a5' },
|
||||
{ tag: tags.keyword, color: '#14bfad' },
|
||||
|
|
Loading…
Reference in a new issue