diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-23 17:46:41 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-05-23 17:47:17 +0200 |
commit | 3d79d4ae3dff4305fa0808c34d3fb14bc0fe1e82 (patch) | |
tree | 8fa082c57e87e60d0839ba2a28d2103de5333357 /cui | |
parent | 04ccece7299ac1e57488e5ef36af122edeec2aae (diff) |
make this a little less confusing
... and change to a friendlier red for invalid patterns.
Change-Id: I19488abd496b144439d7918dc31cfd3f5f4fef92
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 12 |
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; |