Kaydet (Commit) ba8007ff authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Use rollover color in the native case.

Otherwise, the text on the button easily becomes invisible.

Change-Id: Ia812706559fbee4ce4ccb1f7610cfd235b1dc5c3
üst 493c1052
...@@ -840,6 +840,8 @@ void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawF ...@@ -840,6 +840,8 @@ void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawF
if ( nDrawFlags & WINDOW_DRAW_MONO ) if ( nDrawFlags & WINDOW_DRAW_MONO )
aColor = Color( COL_BLACK ); aColor = Color( COL_BLACK );
else if( (nDrawFlags & WINDOW_DRAW_ROLLOVER) && IsNativeControlSupported(CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL) )
aColor = rStyleSettings.GetButtonRolloverTextColor();
else if ( IsControlForeground() ) else if ( IsControlForeground() )
aColor = GetControlForeground(); aColor = GetControlForeground();
else if( nDrawFlags & WINDOW_DRAW_ROLLOVER ) else if( nDrawFlags & WINDOW_DRAW_ROLLOVER )
......
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