[Libreoffice-commits] core.git: cui/source
Eike Rathke
erack at redhat.com
Fri May 23 08:47:46 PDT 2014
cui/source/options/optgdlg.cxx | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
New commits:
commit 3d79d4ae3dff4305fa0808c34d3fb14bc0fe1e82
Author: Eike Rathke <erack at redhat.com>
Date: Fri May 23 17:46:41 2014 +0200
make this a little less confusing
... and change to a friendlier red for invalid patterns.
Change-Id: I19488abd496b144439d7918dc31cfd3f5f4fef92
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index ffa6f7e..81cf5d5 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;
More information about the Libreoffice-commits
mailing list