Kaydet (Commit) 02188ace authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Caolán McNamara

do not use white text on white background in control

... setting a control's background color has no effect (until input
field text is changed?)

Could be observed in the pivot table dialog's source range edit when an
invalid range was entered.

Change-Id: Iafb2a9016ac6bd4c020273911d62dd7423ee0458
(cherry picked from commit 01a93d34)
Reviewed-on: https://gerrit.libreoffice.org/19354Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c86140fe
...@@ -519,8 +519,14 @@ void RefEdit::SetRefValid(bool bValid) ...@@ -519,8 +519,14 @@ void RefEdit::SetRefValid(bool bValid)
} }
else else
{ {
#if 0
// Setting background color has no effect here so we'd end up with
// white on white!
SetControlForeground(COL_WHITE); SetControlForeground(COL_WHITE);
SetControlBackground(0xff6563); SetControlBackground(0xff6563);
#else
SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0)));
#endif
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment