diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-11-14 11:40:21 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-14 14:25:56 +0100 |
commit | ba8007ff79bbfad6d8e2ca546ee4e0c9e52160ff (patch) | |
tree | 901ee462e92509f48dfd70e2d2ec33c4afe5c189 /vcl/source/control | |
parent | 493c1052ed15f5c14039049be438055397aa6f2f (diff) |
Use rollover color in the native case.
Otherwise, the text on the button easily becomes invisible.
Change-Id: Ia812706559fbee4ce4ccb1f7610cfd235b1dc5c3
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/button.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 9b442090426a..a8407350ccf0 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -840,6 +840,8 @@ void PushButton::ImplDrawPushButtonContent( OutputDevice* pDev, sal_uLong nDrawF if ( nDrawFlags & WINDOW_DRAW_MONO ) aColor = Color( COL_BLACK ); + else if( (nDrawFlags & WINDOW_DRAW_ROLLOVER) && IsNativeControlSupported(CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL) ) + aColor = rStyleSettings.GetButtonRolloverTextColor(); else if ( IsControlForeground() ) aColor = GetControlForeground(); else if( nDrawFlags & WINDOW_DRAW_ROLLOVER ) |