mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibWeb: Use the system theme's button text color for <input> buttons
This commit is contained in:
parent
79b45f96ee
commit
a49802558d
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void LayoutButton::paint(PaintContext& context, PaintPhase phase)
|
|||
auto text_rect = enclosing_int_rect(absolute_rect());
|
||||
if (m_being_pressed)
|
||||
text_rect.move_by(1, 1);
|
||||
context.painter().draw_text(text_rect, node().value(), specified_style().font(), Gfx::TextAlignment::Center);
|
||||
context.painter().draw_text(text_rect, node().value(), specified_style().font(), Gfx::TextAlignment::Center, context.palette().button_text());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue