Skip to content

Commit 2179b1c

Browse files
committed
[lldb] Improve default statusline colors to work with more color schemes (llvm#133315)
Use the reverse video [1] font effect (`${ansi.negative}`) as the default for the statusline. Inverting the foreground and background color has a better change as looking reasonably good, compared to picking an arbitrary color. [1] https://en.wikipedia.org/wiki/Reverse_video (cherry picked from commit c10e26b)
1 parent ba0b20f commit 2179b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Core/CoreProperties.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ let Definition = "debugger" in {
231231
Desc<"Whether to show a statusline at the bottom of the terminal.">;
232232
def StatuslineFormat: Property<"statusline-format", "FormatEntity">,
233233
Global,
234-
DefaultStringValue<"${ansi.bg.blue}${ansi.fg.black}{${target.file.basename}}{ | ${line.file.basename}:${line.number}:${line.column}}{ | ${thread.stop-reason}}{ | {${progress.count} }${progress.message}}">,
234+
DefaultStringValue<"${ansi.negative}{${target.file.basename}}{ | ${line.file.basename}:${line.number}:${line.column}}{ | ${thread.stop-reason}}{ | {${progress.count} }${progress.message}}">,
235235
Desc<"The default statusline format string.">;
236236
def UseSourceCache: Property<"use-source-cache", "Boolean">,
237237
Global,

0 commit comments

Comments
 (0)