[Libreoffice-commits] core.git: vcl/unx

Luboš Luňák l.lunak at collabora.com
Fri Mar 28 00:16:36 PDT 2014


 vcl/unx/kde4/KDESalFrame.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5e7aad393c0c3fab20c8298697ca96563caa7afe
Author: Luboš Luňák <l.lunak at collabora.com>
Date:   Fri Mar 28 08:06:19 2014 +0100

    menu(bar) uses window text and background color, not button (fdo#50921)
    
    Change-Id: I13adebd09746d21e7456927e14dcdc3efb2c723b

diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
index 9e3fb85d..8afc217 100644
--- a/vcl/unx/kde4/KDESalFrame.cxx
+++ b/vcl/unx/kde4/KDESalFrame.cxx
@@ -295,8 +295,8 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
         QPalette qMenuCG = pMenuBar->palette();
 
         // Menu text and background color, theme specific
-        Color aMenuFore = toColor( qMenuCG.color( QPalette::ButtonText ) );
-        Color aMenuBack = toColor( qMenuCG.color( QPalette::Button ) );
+        Color aMenuFore = toColor( qMenuCG.color( QPalette::WindowText ) );
+        Color aMenuBack = toColor( qMenuCG.color( QPalette::Window ) );
 
         style.SetMenuTextColor( aMenuFore );
         style.SetMenuBarTextColor( aMenuFore );


More information about the Libreoffice-commits mailing list