From c482c2cb6486b256d0c415e158b2fafbd81c2655 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Jul 2018 20:08:53 +0200 Subject: [PATCH] Make wxInfoBar in the dialogs sample more readable As usual, when changing the background colour, we need to change the foreground as well, otherwise the text risks becoming unreadable with some default text colour values -- as was the case under GTK+ 3 with its default theme. --- samples/dialogs/dialogs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 9de1fa2ab5..3fbfd99aeb 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -686,6 +686,7 @@ MyFrame::MyFrame(const wxString& title) // ... changing the colours and/or fonts m_infoBarAdvanced->SetOwnBackgroundColour(0xc8ffff); + m_infoBarAdvanced->SetForegroundColour(0x123312); m_infoBarAdvanced->SetFont(GetFont().Bold().Larger()); // ... and changing the effect (only does anything under MSW currently)