Skip to content

Commit 49bc513

Browse files
author
JohnC32
authored
Update a couple faces to look good on light background's (#539)
- lsp-ui-peek-highlight had handling for light background but dim gray is too light. Also can we add a red box as this looks good. - lsp-ui-sideline-current-symbol had handling for light backgrounds, but order was wrong, also dim gray and the light background are too close, thus proposed a more visible colors - lsp-ui-sideline-code-action had handling for light backgrounds, but order was wrong, fixed.
1 parent b1693d6 commit 49bc513

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

lsp-ui-peek.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ By default, the peek view isn't shown if there is 1 xref."
109109
:group 'lsp-ui-peek)
110110

111111
(defface lsp-ui-peek-highlight
112-
'((((background light)) :background "dim gray"
113-
:foreground "white"
114-
:distant-foreground "black")
112+
'((((background light)) :background "yellow"
113+
:box (:line-width -1 :color "red"))
115114
(t :background "white"
116115
:foreground "black"
117116
:distant-foreground "white"
118-
:box (:line-width -1 :color "white")))
117+
:box (:line-width -1 :color "red")))
119118
"Face used to highlight the reference/definition.
120119
Do not use box, underline or overline prop. If you want to use
121120
box, use a negative value for its width. Those properties deform

lsp-ui-sideline.el

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,21 @@ It is used to know when the window has changed of width.")
152152
:group 'lsp-ui-sideline)
153153

154154
(defface lsp-ui-sideline-current-symbol
155-
'((default
156-
:foreground "white"
157-
:weight ultra-bold
158-
:box (:line-width -1 :color "white")
159-
:height 0.99)
160-
(((background light))
161-
:foreground "dim gray"
162-
:box (:line-width -1 :color "dim gray")))
155+
'((((background light))
156+
:foreground "black"
157+
:weight ultra-bold
158+
:box (:line-width -1 :color "black")
159+
:height 0.99)
160+
(t :foreground "white"
161+
:weight ultra-bold
162+
:box (:line-width -1 :color "white")
163+
:height 0.99))
163164
"Face used to highlight the symbol on point."
164165
:group 'lsp-ui-sideline)
165166

166167
(defface lsp-ui-sideline-code-action
167-
'((default :foreground "yellow")
168-
(((background light)) :foreground "DarkOrange"))
168+
'((((background light)) :foreground "DarkOrange")
169+
(t :foreground "yellow"))
169170
"Face used to highlight code action text."
170171
:group 'lsp-ui-sideline)
171172

0 commit comments

Comments
 (0)