openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1476091 - /openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx
Date Fri, 26 Apr 2013 07:45:41 GMT
Author: af
Date: Fri Apr 26 07:45:40 2013
New Revision: 1476091

URL: http://svn.apache.org/r1476091
Log:
122144: Use same color for all sidebar backgrounds.

Modified:
    openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx

Modified: openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx?rev=1476091&r1=1476090&r2=1476091&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/Theme.cxx Fri Apr 26 07:45:40 2013
@@ -218,7 +218,9 @@ void Theme::UpdateTheme (void)
 
 #define Alternatives(n,hc,sys) (mbIsHighContrastMode ? hc : (bUseSystemColors ? sys : n))
 
-        const Color aBaseBackgroundColor (rStyle.GetDialogColor());
+        Color aBaseBackgroundColor (rStyle.GetDialogColor());
+        // UX says this should be a little brighter, but that looks off when compared to
the other windows.
+        //aBaseBackgroundColor.IncreaseLuminance(7);
         Color aBorderColor (aBaseBackgroundColor);
         aBorderColor.DecreaseLuminance(15);
         Color aSecondColor (aBaseBackgroundColor);
@@ -226,7 +228,7 @@ void Theme::UpdateTheme (void)
         
         setPropertyValue(
             maPropertyIdToNameMap[Paint_DeckBackground],
-            Any(sal_Int32(rStyle.GetMenuColor().GetRGBColor())));
+            Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
 
         setPropertyValue(
             maPropertyIdToNameMap[Paint_DeckTitleBarBackground],
@@ -263,10 +265,8 @@ void Theme::UpdateTheme (void)
                         rStyle.GetFloatTitleHeight()))));
         setPropertyValue(
             maPropertyIdToNameMap[Paint_PanelBackground],
-            Any(sal_Int32(rStyle.GetDialogColor().GetRGBColor())));
-        //            Any(sal_Int32(mbIsHighContrastMode ? 0x000000 :
-        //            0xffffff)));
-        
+            Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
+      
         setPropertyValue(
             maPropertyIdToNameMap[Paint_PanelTitleBarBackground],
             Any(Tools::VclToAwtGradient(Gradient(



Mime
View raw message