summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/tbxdrctl.cxx
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2002-04-11 10:49:39 +0000
committerCarsten Driesner <cd@openoffice.org>2002-04-11 10:49:39 +0000
commitc204eed4c0cfbfc9e28797defff95c0017968cd5 (patch)
treee7e9c231c3a401dc64da578bce0bdc364c55cec7 /svx/source/tbxctrls/tbxdrctl.cxx
parent7fa06005b6fd097f5903cd2143bae1b6722e82f0 (diff)
#98598# High contrast support for toolboxes and menus
Diffstat (limited to 'svx/source/tbxctrls/tbxdrctl.cxx')
-rw-r--r--svx/source/tbxctrls/tbxdrctl.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/tbxdrctl.cxx b/svx/source/tbxctrls/tbxdrctl.cxx
index 8f27a1934ade..36046019a978 100644
--- a/svx/source/tbxctrls/tbxdrctl.cxx
+++ b/svx/source/tbxctrls/tbxdrctl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tbxdrctl.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: nn $ $Date: 2002-03-14 15:15:13 $
+ * last change: $Author: cd $ $Date: 2002-04-11 11:49:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -117,10 +117,13 @@ void SvxTbxCtlDraw::StateChanged( USHORT nSID, SfxItemState eState,
if( GetId() == SID_INSERT_DRAW && nTemp != USHRT_MAX )
{
+ // Check whether we are in high contrast mode or not!
+ BOOL bHiContrast = GetToolBox().GetBackground().GetColor().IsDark();
+
nLastAction = nTemp;
USHORT nImage = nLastAction ? nLastAction : GetId();
SfxViewFrame* pFrame = GetBindings().GetDispatcher()->GetFrame();
- Image aImage = pFrame->GetImageManager()->GetImage( nImage );
+ Image aImage = pFrame->GetImageManager()->GetImage( nImage, bHiContrast );
GetToolBox().SetItemImage( GetId(), aImage );
}
}