summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-05-23 17:46:41 +0200
committerEike Rathke <erack@redhat.com>2014-05-23 17:51:04 +0200
commit524a83a3217bad4dcce96c2cddc9bf9c4b0f2292 (patch)
tree10635ad769ca4ff23d620731050aa51d55ffad0a /cui
parentfcf07f67958672088c346fe0ed5f41130c905721 (diff)
make this a little less confusing
... and change to a friendlier red for invalid patterns. Change-Id: I19488abd496b144439d7918dc31cfd3f5f4fef92 (cherry picked from commit 3d79d4ae3dff4305fa0808c34d3fb14bc0fe1e82)
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index ffa6f7eec658..81cf5d55c666 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1762,16 +1762,12 @@ IMPL_LINK( OfaLanguagesTabPage, DatePatternsHdl, Edit*, pEd )
}
else
{
- // color to use as background for an invalid pattern
- #define INVALID_PATTERN_BACKGROUND_COLOR ::Color(0xff6563)
#if 0
- // color to use as foreground for an invalid pattern
- #define INVALID_PATTERN_FOREGROUND_COLOR Color(COL_WHITE)
- //! Gives white on white!?!
- pEd->SetControlBackground( INVALID_PATTERN_BACKGROUND_COLOR);
- pEd->SetControlForeground( INVALID_PATTERN_FOREGROUND_COLOR);
+ //! Gives white on white!?! instead of white on reddish.
+ pEd->SetControlBackground( ::Color( RGB_COLORDATA( 0xff, 0x65, 0x63)));
+ pEd->SetControlForeground( ::Color( COL_WHITE));
#else
- pEd->SetControlForeground( INVALID_PATTERN_BACKGROUND_COLOR);
+ pEd->SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0)));
#endif
}
return 0;