From 1cc60bfc8d7fccfce7ab86c05c853299a21eefac Mon Sep 17 00:00:00 2001 From: vsonnier Date: Sat, 24 Mar 2018 17:32:54 +0100 Subject: [PATCH] Fixes #635 round 5, Bookmarkview : let the buttons be of default color --- src/forms/Bookmark/BookmarkView.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/forms/Bookmark/BookmarkView.cpp b/src/forms/Bookmark/BookmarkView.cpp index f60ebeb..7933c26 100644 --- a/src/forms/Bookmark/BookmarkView.cpp +++ b/src/forms/Bookmark/BookmarkView.cpp @@ -692,14 +692,6 @@ void BookmarkView::refreshLayout() { wxButton *BookmarkView::makeButton(wxWindow *parent, std::string labelVal, wxObjectEventFunction handler) { wxButton *nButton = new wxButton( m_buttonPanel, wxID_ANY, labelVal); nButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, handler, nullptr, this); - - wxColour bgColor(ThemeMgr::mgr.currentTheme->generalBackground); - // wxColour fgColor(ThemeMgr::mgr.currentTheme->button); - //Force white color: - wxColour textColorWhite(RGBA4f(255,255,255)); - - nButton->SetBackgroundColour(bgColor); - nButton->SetForegroundColour(textColorWhite); return nButton; }