tweak number line highlighter style

This commit is contained in:
Maxime Coste 2013-05-24 18:39:03 +02:00
parent ad178e383b
commit 9991292bd3
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ ColorRegistry::ColorRegistry()
{ "SecondarySelection", { Colors::Black, Colors::Blue } }, { "SecondarySelection", { Colors::Black, Colors::Blue } },
{ "PrimaryCursor", { Colors::Black, Colors::White } }, { "PrimaryCursor", { Colors::Black, Colors::White } },
{ "SecondaryCursor", { Colors::Black, Colors::White } }, { "SecondaryCursor", { Colors::Black, Colors::White } },
{ "LineNumbers", { Colors::Black, Colors::White } }, { "LineNumbers", { Colors::Default, Colors::Default } },
{ "MenuForeground", { Colors::Blue, Colors::Cyan } }, { "MenuForeground", { Colors::Blue, Colors::Cyan } },
{ "MenuBackground", { Colors::Cyan, Colors::Blue } }, { "MenuBackground", { Colors::Cyan, Colors::Blue } },
{ "Information", { Colors::Black, Colors::Yellow } }, { "Information", { Colors::Black, Colors::Yellow } },

View File

@ -265,7 +265,7 @@ void show_line_numbers(DisplayBuffer& display_buffer)
for (LineCount c = last_line; c > 0; c /= 10) for (LineCount c = last_line; c > 0; c /= 10)
++digit_count; ++digit_count;
char format[] = "%?d "; char format[] = "%?d";
format[1] = '0' + digit_count; format[1] = '0' + digit_count;
auto& colors = get_color("LineNumbers"); auto& colors = get_color("LineNumbers");
for (auto& line : display_buffer.lines()) for (auto& line : display_buffer.lines())