mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix slice/print panel background to use theme-transformed color
This commit is contained in:
@@ -1790,8 +1790,8 @@ wxBoxSizer* MainFrame::create_side_tools()
|
||||
|
||||
auto slice_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize);
|
||||
auto print_panel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxDefaultSize);
|
||||
slice_panel->SetBackgroundColour(wxColour("#3B4446"));
|
||||
print_panel->SetBackgroundColour(wxColour("#3B4446"));
|
||||
slice_panel->SetBackgroundColour(StateColor::darkModeColorFor(wxColour("#3B4446")));
|
||||
print_panel->SetBackgroundColour(StateColor::darkModeColorFor(wxColour("#3B4446")));
|
||||
|
||||
m_slice_btn = new SideButton(slice_panel, _L("Slice plate"), "");
|
||||
m_slice_option_btn = new SideButton(slice_panel, "", "sidebutton_dropdown", 0, 14);
|
||||
@@ -2324,6 +2324,11 @@ void MainFrame::update_side_button_style()
|
||||
m_print_option_btn->SetExtraSize(wxSize(FromDIP(10), FromDIP(10)));
|
||||
m_print_option_btn->SetIconOffset(FromDIP(2));
|
||||
m_print_option_btn->SetMinSize(wxSize(FromDIP(24), FromDIP(24)));
|
||||
|
||||
// Keep panel backgrounds in sync with SideButton's darkModeColorFor(#3B4446) bottom strip
|
||||
auto bg = StateColor::darkModeColorFor(wxColour("#3B4446"));
|
||||
m_slice_btn->GetParent()->SetBackgroundColour(bg);
|
||||
m_print_btn->GetParent()->SetBackgroundColour(bg);
|
||||
}
|
||||
|
||||
void MainFrame::update_slice_print_status(SlicePrintEventType event, bool can_slice, bool can_print)
|
||||
|
||||
Reference in New Issue
Block a user