mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 21:01:53 +00:00
LibDraw: Add Button and ButtonText system theme colors
These are now separate from the Window and WindowText colors.
This commit is contained in:
parent
9171aef724
commit
df3a2dba43
Notes:
sideshowbarker
2024-07-19 10:43:38 +09:00
Author: https://github.com/awesomekling
Commit: df3a2dba43
21 changed files with 57 additions and 39 deletions
|
@ -154,7 +154,7 @@ void GAbstractButton::paint_text(GPainter& painter, const Rect& rect, const Font
|
|||
|
||||
if (text().is_empty())
|
||||
return;
|
||||
painter.draw_text(clipped_rect, text(), font, text_alignment, SystemColor::Text, TextElision::Right);
|
||||
painter.draw_text(clipped_rect, text(), font, text_alignment, SystemColor::ButtonText, TextElision::Right);
|
||||
if (is_focused())
|
||||
painter.draw_rect(clipped_rect.inflated(6, 4), Color(140, 140, 140));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue