summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-11-14 11:40:21 +0100
committerJan Holesovsky <kendy@collabora.com>2013-11-14 14:25:56 +0100
commitba8007ff79bbfad6d8e2ca546ee4e0c9e52160ff (patch)
tree901ee462e92509f48dfd70e2d2ec33c4afe5c189 /vcl
parent493c1052ed15f5c14039049be438055397aa6f2f (diff)
Use rollover color in the native case.
Otherwise, the text on the button easily becomes invisible. Change-Id: Ia812706559fbee4ce4ccb1f7610cfd235b1dc5c3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx2
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 )