diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index df2642596925..f3dc44b4a193 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -413,11 +413,6 @@ void StatusBar::ImplDrawItem(vcl::RenderContext& rRenderContext, bool bOffScreen if (bOffScreen) { - if (ThemeColors::IsThemeEnabled()) - { - const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); - mpImplData->mpVirDev->SetTextColor(rStyleSettings.GetWindowTextColor()); - } mpImplData->mpVirDev->DrawText( aTextPos, pItem->maText, diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index b677efb95d21..603c57048544 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -2555,6 +2555,7 @@ static void lcl_LoadColorsFromTheme(StyleSettings& rStyleSet) rStyleSet.SetMenuBarTextColor(rThemeColors.GetMenuBarTextColor()); rStyleSet.SetMenuTextColor(rThemeColors.GetMenuTextColor()); + rStyleSet.SetButtonTextColor(rThemeColors.GetButtonTextColor()); rStyleSet.SetDefaultActionButtonTextColor(rThemeColors.GetButtonTextColor()); rStyleSet.SetActionButtonTextColor(rThemeColors.GetButtonTextColor()); rStyleSet.SetShadowColor(rThemeColors.GetShadeColor());