diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index 23ef829..a82d85a 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -852,13 +852,16 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe Wallpaper aTransparentWall(TempColor); sal_Int32 nWinWidth = GetSizePixel().Width(); sal_Int32 nFTHeight = aChapters[0]->GetSizePixel().Height(); - Color aBackColor; + Color aFontColor = aChapters[0]->GetFont().GetColor(); + const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - sal_Bool bHighContrast = rStyleSettings.GetHighContrastMode(); - if ( bHighContrast ) - aBackColor = rStyleSettings.GetShadowColor(); - else - aBackColor = Color( COL_LIGHTGRAY); + + Color aBackColor = rStyleSettings.GetDialogColor(); + if ( aBackColor.GetLuminance() <= aFontColor.GetLuminance() ) + aBackColor.IncreaseLuminance( 32 ); + else + aBackColor.DecreaseLuminance( 32 ); + sal_Int32 nCount = aChapterWins.size(); for(sal_Int32 i = 0; i < nCount; ++i) {