mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
Some code beautification for the last commit
+ Fix of the TabPresetComboBox layout for "light mode" + "tabs as a menu items" preferences
This commit is contained in:
parent
fd071421cb
commit
5434a8980f
4 changed files with 15 additions and 9 deletions
|
@ -490,7 +490,7 @@ void Tab::OnActivate()
|
|||
|
||||
// Workaroud for Menu instead of NoteBook
|
||||
#ifdef _MSW_DARK_MODE
|
||||
if (wxGetApp().dark_mode()) {
|
||||
if (wxGetApp().tabs_as_menu()) {
|
||||
wxSize sz = m_presets_choice->GetSize();
|
||||
wxSize ok_sz = wxSize(35 * m_em_unit, m_presets_choice->GetBestSize().y+1);
|
||||
if (sz != ok_sz) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue