File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ void BookmarkView::updateTheme() {
153153 m_treeView->SetForegroundColour (textColor);
154154
155155 m_propPanel->SetBackgroundColour (bgColor);
156+ m_buttonPanel->SetBackgroundColour (bgColor);
157+
156158 m_propPanel->SetForegroundColour (textColor);
157159
158160 m_labelLabel->SetForegroundColour (textColor);
@@ -163,7 +165,7 @@ void BookmarkView::updateTheme() {
163165 m_modulationVal->SetForegroundColour (textColor);
164166 m_modulationLabel->SetForegroundColour (textColor);
165167
166- m_buttonPanel-> SetBackgroundColour (bgColor );
168+ refreshLayout ( );
167169}
168170
169171
@@ -653,6 +655,7 @@ void BookmarkView::showButtons() {
653655void BookmarkView::refreshLayout () {
654656 GetSizer ()->Layout ();
655657 Update ();
658+ Refresh ();
656659}
657660
658661
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ class RGBA4f {
4242
4343 operator wxColour () {
4444 return wxColour (
45- (unsigned char ) ( r * 255.0 ),
46- (unsigned char ) ( g * 255.0 ),
47- (unsigned char ) ( b * 255.0 ));
45+ (unsigned char ) std::min (( r * 255.0 ), 255.0 ),
46+ (unsigned char ) std::min (( g * 255.0 ), 255.0 ),
47+ (unsigned char ) std::min (( b * 255.0 ), 255.0 ));
4848
4949 }
5050
You can’t perform that action at this time.
0 commit comments