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:
YuSanka 2021-06-18 21:54:20 +02:00
parent fd071421cb
commit 5434a8980f
4 changed files with 15 additions and 9 deletions

View file

@ -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) {