@@ -32,6 +32,7 @@ export enum ColorName {
3232 CodeBackground ,
3333 EditorForeground ,
3434 EditorBackground ,
35+ FocusBorder ,
3536 ActiveTabBackground ,
3637 ActiveTabForeground ,
3738 InactiveTabBackground ,
@@ -53,6 +54,12 @@ export enum ColorName {
5354 SideBarBackground ,
5455 SideBarForeground ,
5556 SideBarBorder ,
57+ // Background color for the highlight of line at the cursor position
58+ LineHighlightBackground ,
59+ // Background color of highlighted ranges, like by quick open and find features
60+ RangeHighlightBackground ,
61+ // Foreground color of info squigglies in the editor
62+ EditorInfoForeground ,
5663}
5764
5865type Color = string | undefined
@@ -97,6 +104,15 @@ export function getColor(
97104 hc : "#fffffe" ,
98105 } )
99106 )
107+ case ColorName . FocusBorder :
108+ return (
109+ colors [ "focusBorder" ] ||
110+ getDefault ( theme , {
111+ light : "#0090F1" ,
112+ dark : "#007FD4" ,
113+ hc : contrastBorder ,
114+ } )
115+ )
100116 case ColorName . ActiveTabBackground :
101117 return (
102118 colors [ "tab.activeBackground" ] ||
@@ -267,6 +283,34 @@ export function getColor(
267283 )
268284 case ColorName . ListHoverForeground :
269285 return colors [ "list.hoverForeground" ] || undefined
286+ case ColorName . LineHighlightBackground :
287+ return (
288+ colors [ "editor.lineHighlightBackground" ] ||
289+ getDefault ( theme , {
290+ dark : undefined ,
291+ light : undefined ,
292+ hc : undefined ,
293+ } )
294+ )
295+ case ColorName . RangeHighlightBackground :
296+ return (
297+ colors [ "editor.rangeHighlightBackground" ] ||
298+ getDefault ( theme , {
299+ dark : "#ffffff0b" ,
300+ light : "#fdff0033" ,
301+ hc : undefined ,
302+ } )
303+ )
304+
305+ case ColorName . EditorInfoForeground :
306+ return (
307+ colors [ "editor.infoForeground" ] ||
308+ getDefault ( theme , {
309+ dark : "#3794FF" ,
310+ light : "#1a85ff" ,
311+ hc : "#3794FF" ,
312+ } )
313+ )
270314
271315 default :
272316 return "#f00"
0 commit comments