summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:53:58 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:53:58 +0000
commit099a952ceebd08dda71cf34d003c66075b82bbe0 (patch)
tree69f24c042d69be3db6f645206c614b47ca30eb87 /starmath
parent3e6273d02ce0b7dc97cc4e253ffce89520b5427c (diff)
INTEGRATION: CWS hcicons (1.35.40); FILE MERGED
2007/07/01 14:05:03 fs 1.35.40.2: RESYNC: (1.35-1.39); FILE MERGED 2007/05/25 11:21:54 tl 1.35.40.1: #146858# adding hi-contrast image for right arrow
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/dialog.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index e361b659bcdf..eafa1c9acdf2 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dialog.cxx,v $
*
- * $Revision: 1.39 $
+ * $Revision: 1.40 $
*
- * last change: $Author: rt $ $Date: 2007-05-31 10:03:40 $
+ * last change: $Author: hr $ $Date: 2007-08-03 13:53:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -2189,6 +2189,8 @@ SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
aChangeBtn (this, SmResId(2)),
aDeleteBtn (this, SmResId(3)),
aRightArrow (this, SmResId(1)),
+ aRigthArrow_Im (SmResId(1)),
+ aRigthArrow_Im_HC (SmResId(2)), // hi-contrast version
rSymSetMgr (rMgr),
pSubsetMap (NULL),
pFontList (NULL)
@@ -2239,7 +2241,6 @@ SmSymDefineDialog::~SmSymDefineDialog()
delete pOrigSymbol;
}
-
void SmSymDefineDialog::InitColor_Impl()
{
#if OSL_DEBUG_LEVEL > 1
@@ -2247,7 +2248,8 @@ void SmSymDefineDialog::InitColor_Impl()
#endif
ColorData nBgCol = COL_WHITE,
nTxtCol = COL_BLACK;
- if (GetDisplayBackground().GetColor().IsDark())
+ BOOL bHighContrast = GetDisplayBackground().GetColor().IsDark() != 0;
+ if (bHighContrast)
{
const StyleSettings &rS = GetSettings().GetStyleSettings();
nBgCol = rS.GetFieldColor().GetColor();
@@ -2263,6 +2265,9 @@ void SmSymDefineDialog::InitColor_Impl()
aOldSymbolDisplay.SetTextColor( aTxtColor );
aSymbolDisplay .SetBackground( aWall );
aSymbolDisplay .SetTextColor( aTxtColor );
+
+ const Image &rArrowRight = bHighContrast ? aRigthArrow_Im_HC : aRigthArrow_Im;
+ aRightArrow.SetImage( rArrowRight );
}