1
Fork 0
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:
Andreas Kling 2020-11-08 01:36:45 +01:00
parent 79b45f96ee
commit a49802558d

View file

@ -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());
}
}