From 0820e90c73474f02a06ffb97bfab606b0645d175 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 17 Apr 2025 14:29:09 +0100 Subject: [PATCH] Fix button sizing. Hack appears to be no longer needed, and is causing the side and bottom to clip (at least on MacOS). --- common/widgets/split_button.cpp | 3 --- common/widgets/std_bitmap_button.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/common/widgets/split_button.cpp b/common/widgets/split_button.cpp index a5dfc95ef1..9c244e8fa6 100644 --- a/common/widgets/split_button.cpp +++ b/common/widgets/split_button.cpp @@ -243,9 +243,6 @@ void SPLIT_BUTTON::OnPaint( wxPaintEvent& WXUNUSED( aEvent ) ) wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ); wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ); - aRect.width += 1; - aRect.height += 1; - if( KIPLATFORM::UI::IsDarkTheme() ) { bg = bg.ChangeLightness( m_bIsEnable ? 130 : 120 ); diff --git a/common/widgets/std_bitmap_button.cpp b/common/widgets/std_bitmap_button.cpp index ccab7e2e00..ac6816d30a 100644 --- a/common/widgets/std_bitmap_button.cpp +++ b/common/widgets/std_bitmap_button.cpp @@ -195,9 +195,6 @@ void STD_BITMAP_BUTTON::OnPaint( wxPaintEvent& WXUNUSED( aEvent ) ) wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ); wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ); - aRect.width += 1; - aRect.height += 1; - if( KIPLATFORM::UI::IsDarkTheme() ) { bg = bg.ChangeLightness( m_bIsEnable ? 130 : 120 );