mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
Fixes #635 round 5, Bookmarkview : let the buttons be of default color
This commit is contained in:
parent
c9d38ab363
commit
1cc60bfc8d
@ -692,14 +692,6 @@ void BookmarkView::refreshLayout() {
|
|||||||
wxButton *BookmarkView::makeButton(wxWindow *parent, std::string labelVal, wxObjectEventFunction handler) {
|
wxButton *BookmarkView::makeButton(wxWindow *parent, std::string labelVal, wxObjectEventFunction handler) {
|
||||||
wxButton *nButton = new wxButton( m_buttonPanel, wxID_ANY, labelVal);
|
wxButton *nButton = new wxButton( m_buttonPanel, wxID_ANY, labelVal);
|
||||||
nButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, handler, nullptr, this);
|
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;
|
return nButton;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user