ooo-build r14118 - in trunk: . patches/dev300
- From: kyoshida svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14118 - in trunk: . patches/dev300
- Date: Sat, 27 Sep 2008 01:29:54 +0000 (UTC)
Author: kyoshida
Date: Sat Sep 27 01:29:54 2008
New Revision: 14118
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14118&view=rev
Log:
2008-09-26 Kohei Yoshida <kyoshida novell com>
* patches/dev300/apply: added and removed patches.
* patches/dev300/native-theme-tab-colors-svtools.diff:
* patches/dev300/native-theme-tab-colors-vcl.diff: use additional
native theme colors for selected and unselected tabs.
* patches/dev300/svtools-adjust-sheet-tabcolor.diff: removed the
obsolete patch.
Added:
trunk/patches/dev300/native-theme-tab-colors-svtools.diff
trunk/patches/dev300/native-theme-tab-colors-vcl.diff
Removed:
trunk/patches/dev300/svtools-adjust-sheet-tabcolor.diff
Modified:
trunk/ChangeLog
trunk/patches/dev300/apply
Modified: trunk/patches/dev300/apply
==============================================================================
--- trunk/patches/dev300/apply (original)
+++ trunk/patches/dev300/apply Sat Sep 27 01:29:54 2008
@@ -1313,6 +1313,11 @@
# enable vcl to load bitmaps when height it negative
vcl-bitmap2-negative-height.diff
+# Make sure that the colors between selected and unselected tabs can be
+# distinguished by using appropriate theme colors.
+native-theme-tab-colors-svtools.diff, n#396386, kohei
+native-theme-tab-colors-vcl.diff, n#396386, kohei
+
[ SystemBits ]
# use getopt() and readdir_r() from system glibc
#FIXME src680: system-libc.diff, i#69033, rengelha
@@ -1758,10 +1763,6 @@
# navigating through cells.
sc-skip-overlapped-cells.diff, i#86943, n#362674, kohei
-# Make sure that the colors between the tabs of selected and unselected
-# sheets can be distinguished.
-svtools-adjust-sheet-tabcolor.diff, n#386029, kohei
-
# Make the formula separators changeable per locale setting.
calc-formula-variable-separators-sc.diff, i#92056, kohei
Added: trunk/patches/dev300/native-theme-tab-colors-svtools.diff
==============================================================================
--- (empty file)
+++ trunk/patches/dev300/native-theme-tab-colors-svtools.diff Sat Sep 27 01:29:54 2008
@@ -0,0 +1,22 @@
+diff --git svtools/source/control/tabbar.cxx svtools/source/control/tabbar.cxx
+index 75b9bc6..e7f492c 100644
+--- svtools/source/control/tabbar.cxx
++++ svtools/source/control/tabbar.cxx
+@@ -488,7 +488,7 @@ void TabBar::ImplGetColors( Color& rFaceColor, Color& rFaceTextColor,
+ if ( IsControlBackground() )
+ rFaceColor = GetControlBackground();
+ else
+- rFaceColor = rStyleSettings.GetFaceColor();
++ rFaceColor = rStyleSettings.GetInactiveTabColor();
+ if ( IsControlForeground() )
+ rFaceTextColor = GetControlForeground();
+ else
+@@ -496,7 +496,7 @@ void TabBar::ImplGetColors( Color& rFaceColor, Color& rFaceTextColor,
+ if ( mbSelColor )
+ rSelectColor = maSelColor;
+ else
+- rSelectColor = rStyleSettings.GetWindowColor();
++ rSelectColor = rStyleSettings.GetActiveTabColor();
+ if ( mbSelTextColor )
+ rSelectTextColor = maSelTextColor;
+ else
Added: trunk/patches/dev300/native-theme-tab-colors-vcl.diff
==============================================================================
--- (empty file)
+++ trunk/patches/dev300/native-theme-tab-colors-vcl.diff Sat Sep 27 01:29:54 2008
@@ -0,0 +1,76 @@
+diff --git vcl/inc/vcl/settings.hxx vcl/inc/vcl/settings.hxx
+index 2e26e22..01466e5 100644
+--- vcl/inc/vcl/settings.hxx
++++ vcl/inc/vcl/settings.hxx
+@@ -364,6 +364,8 @@ private:
+ Color maHighlightColor;
+ Color maHighlightLinkColor;
+ Color maHighlightTextColor;
++ Color maActiveTabColor;
++ Color maInactiveTabColor;
+ Color maInfoTextColor;
+ Color maLabelTextColor;
+ Color maLightBorderColor;
+@@ -709,6 +711,15 @@ public:
+ const Color& GetMonoColor() const
+ { return mpData->maMonoColor; }
+
++ void SetActiveTabColor( const Color& rColor )
++ { CopyData(); mpData->maActiveTabColor = rColor; }
++ const Color& GetActiveTabColor() const
++ { return mpData->maActiveTabColor; }
++ void SetInactiveTabColor( const Color& rColor )
++ { CopyData(); mpData->maInactiveTabColor = rColor; }
++ const Color& GetInactiveTabColor() const
++ { return mpData->maInactiveTabColor; }
++
+ void SetHighContrastMode( BOOL bHighContrast )
+ { CopyData(); mpData->mnHighContrast = bHighContrast; }
+ BOOL GetHighContrastMode() const
+diff --git vcl/source/app/settings.cxx vcl/source/app/settings.cxx
+index 2713126..42b83b2 100644
+--- vcl/source/app/settings.cxx
++++ vcl/source/app/settings.cxx
+@@ -467,6 +467,8 @@ ImplStyleData::ImplStyleData( const ImplStyleData& rData ) :
+ maHighlightColor( rData.maHighlightColor ),
+ maHighlightLinkColor( rData.maHighlightLinkColor ),
+ maHighlightTextColor( rData.maHighlightTextColor ),
++ maActiveTabColor( rData.maActiveTabColor ),
++ maInactiveTabColor( rData.maInactiveTabColor ),
+ maInfoTextColor( rData.maInfoTextColor ),
+ maLabelTextColor( rData.maLabelTextColor ),
+ maLightBorderColor( rData.maLightBorderColor ),
+@@ -599,6 +601,8 @@ void ImplStyleData::SetStandardStyles()
+ maMenuHighlightTextColor = Color( COL_WHITE );
+ maHighlightColor = Color( COL_BLUE );
+ maHighlightTextColor = Color( COL_WHITE );
++ maActiveTabColor = Color( COL_WHITE );
++ maInactiveTabColor = Color( COL_LIGHTGRAY );
+ maDisableColor = Color( COL_GRAY );
+ maHelpColor = Color( 0xFF, 0xFF, 0xE0 );
+ maHelpTextColor = Color( COL_BLACK );
+@@ -1037,6 +1041,8 @@ BOOL StyleSettings::operator ==( const StyleSettings& rSet ) const
+ (mpData->maMenuHighlightTextColor == rSet.mpData->maMenuHighlightTextColor) &&
+ (mpData->maHighlightColor == rSet.mpData->maHighlightColor) &&
+ (mpData->maHighlightTextColor == rSet.mpData->maHighlightTextColor) &&
++ (mpData->maActiveTabColor == rSet.mpData->maActiveTabColor) &&
++ (mpData->maInactiveTabColor == rSet.mpData->maInactiveTabColor) &&
+ (mpData->maDisableColor == rSet.mpData->maDisableColor) &&
+ (mpData->maHelpColor == rSet.mpData->maHelpColor) &&
+ (mpData->maHelpTextColor == rSet.mpData->maHelpTextColor) &&
+diff --git vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+index aebd295..e0a796b 100644
+--- vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
++++ vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+@@ -3196,6 +3196,11 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
+ gdk_color_free (link_color);
+ }
+
++ // Tab colors
++ aStyleSet.SetActiveTabColor( aBackFieldColor ); // same as the window color.
++ Color aSelectedBackColor = getColor( pStyle->bg[GTK_STATE_ACTIVE] );
++ aStyleSet.SetInactiveTabColor( aSelectedBackColor );
++
+ // menu disabled entries handling
+ aStyleSet.SetSkipDisabledInMenus( TRUE );
+ // menu colors
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]