summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTibor Nagy <xnagytibor@gmail.com>2020-02-19 11:11:37 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-19 12:24:39 +0100
commit33864ab7159f296c205fdb88c8e2ee93361e3c82 (patch)
tree15e1f23393729201000e99c7451da6366325a439
parente1da7ca9796a1c905d4e2c46f32795b2aa04373b (diff)
downloadserenity-33864ab7159f296c205fdb88c8e2ee93361e3c82.zip
LibGUI: Update TextEditor to use ruler colors from the system theme
-rw-r--r--Libraries/LibGUI/TextEditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp
index 3bcc8ca5a2..a993a0b131 100644
--- a/Libraries/LibGUI/TextEditor.cpp
+++ b/Libraries/LibGUI/TextEditor.cpp
@@ -360,8 +360,8 @@ void TextEditor::paint_event(PaintEvent& event)
auto ruler_rect = ruler_rect_in_inner_coordinates();
if (m_ruler_visible) {
- painter.fill_rect(ruler_rect, widget_background_color.darkened(0.85f));
- painter.draw_line(ruler_rect.top_right(), ruler_rect.bottom_right(), widget_background_color.darkened(0.5f));
+ painter.fill_rect(ruler_rect, palette().ruler());
+ painter.draw_line(ruler_rect.top_right(), ruler_rect.bottom_right(), palette().ruler_border());
}
painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value());
@@ -383,7 +383,7 @@ void TextEditor::paint_event(PaintEvent& event)
String::number(i + 1),
is_current_line ? Gfx::Font::default_bold_font() : font(),
Gfx::TextAlignment::TopRight,
- is_current_line ? widget_background_color.darkened(0.2f) : widget_background_color.darkened(0.4f));
+ is_current_line ? palette().ruler_active_text() : palette().ruler_inactive_text());
}
}