View | Details | Raw Unified | Return to issue 118538
Collapse All | Expand All

(-)a/cui/source/options/optcolor.cxx (-6 / +7 lines)
Lines 852-864 ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe Link Here
852
    Wallpaper aTransparentWall(TempColor);
852
    Wallpaper aTransparentWall(TempColor);
853
    sal_Int32 nWinWidth = GetSizePixel().Width();
853
    sal_Int32 nWinWidth = GetSizePixel().Width();
854
    sal_Int32 nFTHeight = aChapters[0]->GetSizePixel().Height();
854
    sal_Int32 nFTHeight = aChapters[0]->GetSizePixel().Height();
855
	Color aBackColor;
855
856
    const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
856
    const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
857
    sal_Bool bHighContrast = rStyleSettings.GetHighContrastMode();
857
    Color aBackColor = rStyleSettings.GetDialogColor();
858
    if ( bHighContrast )
858
   if ( aBackColor.GetLuminance() <= rStyleSettings.GetLabelTextColor().GetLuminance() )
859
        aBackColor = rStyleSettings.GetShadowColor();
859
       aBackColor.IncreaseLuminance( 16 );
860
	else
860
    else
861
		aBackColor = Color( COL_LIGHTGRAY);
861
        aBackColor.DecreaseLuminance( 16 );
862
862
	sal_Int32 nCount = aChapterWins.size();
863
	sal_Int32 nCount = aChapterWins.size();
863
    for(sal_Int32 i = 0; i < nCount; ++i)
864
    for(sal_Int32 i = 0; i < nCount; ++i)
864
    {
865
    {

Return to issue 118538