FIX: Support dark mode in filament picker

- Applied dark theme styling to filament picker dialog
- Fixed color picker background not updating on theme switch

jira: STUDIO-12935

Change-Id: I9c7dcc518e7b0bd2c330f477ee42f4c61ea9fd4b
(cherry picked from commit 66ae7a02b945ff603b2dc699c93e55589481379e)
This commit is contained in:
fei2.fang
2025-06-29 17:57:05 +08:00
committed by Noisyfox
parent 9ee76e4775
commit 470ed6af5d
6 changed files with 46 additions and 11 deletions

View File

@@ -52,6 +52,12 @@ void StaticBox::SetCornerRadius(double radius)
Refresh();
}
void StaticBox::SetBorderStyle(wxPenStyle style)
{
border_style = style;
Refresh();
}
void StaticBox::SetBorderWidth(int width)
{
border_width = width;
@@ -197,7 +203,7 @@ void StaticBox::doRender(wxDC& dc)
rc.y += d;
rc.height -= d;
}
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
dc.SetPen(wxPen(border_color.colorForStates(states), border_width, border_style));
} else {
dc.SetPen(wxPen(background_color.colorForStates(states)));
}