mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX:changed top menu bar color on macos
Change-Id: I276aab27c2c089ad322dc5cb2f6206dccb3e494d
This commit is contained in:
parent
9ab6e86b47
commit
5c3c2fcb1c
3 changed files with 16 additions and 5 deletions
|
@ -20,7 +20,15 @@ ButtonsListCtrl::ButtonsListCtrl(wxWindow *parent, wxBoxSizer* side_tools) :
|
|||
#ifdef __WINDOWS__
|
||||
SetDoubleBuffered(true);
|
||||
#endif //__WINDOWS__
|
||||
wxColour default_btn_bg = wxColour("#3B4446"); // Gradient #414B4E
|
||||
|
||||
wxColour default_btn_bg;
|
||||
#ifdef __APPLE__
|
||||
default_btn_bg = wxColour("#3B4446"); // Gradient #414B4E
|
||||
#else
|
||||
default_btn_bg = wxColour("#2D2D30"); // Gradient #414B4E
|
||||
#endif
|
||||
|
||||
|
||||
SetBackgroundColour(default_btn_bg);
|
||||
|
||||
int em = em_unit(this);// Slic3r::GUI::wxGetApp().em_unit();
|
||||
|
|
|
@ -969,7 +969,10 @@ void UpgradePanel::show_status(int status)
|
|||
|
||||
void UpgradePanel::on_sys_color_changed()
|
||||
{
|
||||
//add some protection for Dark mode
|
||||
if (m_push_upgrade_panel) {
|
||||
m_push_upgrade_panel->on_sys_color_changed();
|
||||
}
|
||||
}
|
||||
|
||||
bool UpgradePanel::Show(bool show)
|
||||
|
|
|
@ -44,9 +44,9 @@ double mac_max_scaling_factor()
|
|||
|
||||
void set_miniaturizable(void * window)
|
||||
{
|
||||
CGFloat rFloat = 38/255.0;
|
||||
CGFloat gFloat = 46/255.0;
|
||||
CGFloat bFloat = 48/255.0;
|
||||
CGFloat rFloat = 34/255.0;
|
||||
CGFloat gFloat = 34/255.0;
|
||||
CGFloat bFloat = 36/255.0;
|
||||
[(NSView*) window window].titlebarAppearsTransparent = true;
|
||||
[(NSView*) window window].backgroundColor = [NSColor colorWithCalibratedRed:rFloat green:gFloat blue:bFloat alpha:1.0];
|
||||
[(NSView*) window window].styleMask |= NSMiniaturizableWindowMask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue