From a49802558d37293183ee3420ee3261b806bf4258 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 8 Nov 2020 01:36:45 +0100 Subject: [PATCH] LibWeb: Use the system theme's button text color for buttons --- Libraries/LibWeb/Layout/LayoutButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Layout/LayoutButton.cpp b/Libraries/LibWeb/Layout/LayoutButton.cpp index e09b052fd0..653de61a8e 100644 --- a/Libraries/LibWeb/Layout/LayoutButton.cpp +++ b/Libraries/LibWeb/Layout/LayoutButton.cpp @@ -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()); } }