mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Update TextEditor to use ruler colors from the system theme
This commit is contained in:
parent
e1da7ca979
commit
33864ab715
Notes:
sideshowbarker
2024-07-19 09:13:19 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/33864ab7159 Pull-request: https://github.com/SerenityOS/serenity/pull/1248
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue