Skip to content

Commit

Permalink
Added Monaco focus highlight color
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Oct 20, 2023
1 parent e7147bc commit 8101f9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
--dh-color-editor-suggest-selected-bg: var(--dh-color-highlight-selected);
--dh-color-editor-suggest-selected-fg: var(--dh-color-white);
--dh-color-editor-suggest-highlight-fg: var(--dh-color-accent-700);
--dh-color-editor-suggest-focus-highlight-fg: var(--dh-color-accent-700);
--dh-color-editor-suggest-hover-bg: var(--dh-color-highlight-hover);

/* Links */
Expand Down
3 changes: 3 additions & 0 deletions packages/console/src/monaco/MonacoTheme.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
editor-suggest-widget-highlightForeground: var(
--dh-color-editor-suggest-highlight-fg
);
editor-suggest-widget-focus-highlight-foreground: var(
--dh-color-editor-suggest-focus-highlight-fg
);
list-hover-background: var(--dh-color-editor-suggest-hover-bg);

// links
Expand Down
2 changes: 2 additions & 0 deletions packages/console/src/monaco/MonacoUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ class MonacoUtils {
MonacoTheme['editor-suggest-widget-selected-foreground'],
'editorSuggestWidget.highlightForeground':
MonacoTheme['editor-suggest-widget-highlightForeground'],
'editorSuggestWidget.focusHighlightForeground':
MonacoTheme['editor-suggest-widget-focus-highlight-foreground'],
'list.hoverBackground': MonacoTheme['list-hover-background'],
'dropdown.background': MonacoTheme['context-menu-background'],
'dropdown.foreground': MonacoTheme['context-menu-foreground'],
Expand Down

0 comments on commit 8101f9f

Please sign in to comment.