diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-06-14 16:28:00 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-06-14 16:28:00 +0200 |
commit | 355b32c362ddba7e7af31961fbda61ba5f83b9d3 (patch) | |
tree | 39bb7c3e2e251db56071dce5aa604585b3cabcf8 /svtools/source | |
parent | a2c557f7fa002c2b52a103ec910f454d10a17ecf (diff) |
calctabcolor: #i5560# add: paint in HC mode
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 7a927f57e7e2..2ad81da40716 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1141,7 +1141,7 @@ void TabBar::Paint( const Rectangle& ) } else { - if ( !pItem->IsDefaultTabBgColor() ) + if ( !pItem->IsDefaultTabBgColor() && !rStyleSettings.GetHighContrastMode() ) { SetFillColor( pItem->maTabBgColor ); SetTextColor( pItem->maTabTextColor ); @@ -1198,7 +1198,7 @@ void TabBar::Paint( const Rectangle& ) if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) { SetLineColor( rStyleSettings.GetLightColor() ); } else { - if ( !pItem->IsDefaultTabBgColor() ) + if ( !pItem->IsDefaultTabBgColor() && ! rStyleSettings.GetHighContrastMode() ) { SetLineColor( pItem->maTabBgColor ); } else { @@ -1232,7 +1232,7 @@ void TabBar::Paint( const Rectangle& ) if ( !pItem->IsDefaultTabBgColor() ) { - if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) ) { + if ( pItem->mbSelect || (pItem->mnId == mnCurPageId) || rStyleSettings.GetHighContrastMode() ) { SetLineColor( pItem->maTabBgColor ); DrawLine( Point(aPos1.X()-1, aPos1.Y()-1), Point(aPos2.X(), aPos2.Y()-1) ); if ( !pItem->mbEnable ) |