Skip to content

Commit

Permalink
Fixes #635 round 5, Bookmarkview : let the buttons be of default color
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Mar 24, 2018
1 parent c9d38ab commit 1cc60bf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/forms/Bookmark/BookmarkView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1cc60bf

Please sign in to comment.