Skip to content

Commit

Permalink
Bug 1857310: Give current line number more contrast in YAML editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jhadvig committed Jul 20, 2020
1 parent f5683ed commit 757b5c1
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import {
import { getLanguageService, TextDocument } from 'yaml-language-server';
import { openAPItoJSONSchema } from '@console/internal/module/k8s/openapi-to-json-schema';
import { getStoredSwagger } from '@console/internal/module/k8s/swagger';
import {
global_BackgroundColor_100 as lineNumberActiveForeground,
global_BackgroundColor_200 as lineNumberForeground,
global_BackgroundColor_dark_100 as editorBackground,
} from '@patternfly/react-tokens';
import { global_BackgroundColor_dark_100 as editorBackground } from '@patternfly/react-tokens';

window.monaco.editor.defineTheme('console', {
base: 'vs-dark',
Expand All @@ -25,8 +21,8 @@ window.monaco.editor.defineTheme('console', {
colors: {
'editor.background': editorBackground.value,
'editorGutter.background': '#292e34', // no pf token defined
'editorLineNumber.activeForeground': lineNumberActiveForeground.value,
'editorLineNumber.foreground': lineNumberForeground.value,
'editorLineNumber.activeForeground': '#fff',
'editorLineNumber.foreground': '#fff',
},
});

Expand Down

0 comments on commit 757b5c1

Please sign in to comment.