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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 12 17:08:47 UTC 2018


 vcl/qt5/Qt5Frame.cxx         |    6 ------
 vcl/unx/kde4/KDESalFrame.cxx |    6 ------
 2 files changed, 12 deletions(-)

New commits:
commit 89c888b48eca24e25ffe8895542cf7ac9b731187
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Wed Dec 12 12:57:10 2018 +0100
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Wed Dec 12 18:08:21 2018 +0100

    Qt5+kde4 don't override generic VCL style settings
    
    In commit 3911bf8364da ("tdf#98253 Qt5 rely on VCL for
    SetDeactiveColor") the named was dropped from the Qt5 styling.
    This results in SetDeactiveColor now being controlled by LO,
    but SetActiveColor by the Qt theming.
    
    But IMHO both need to be managed together in some way, as the
    deactive color is normally some variant of active with a lower
    opacity.
    Also no other backends except Windows and headless even
    overide the four general colors Set(De|A)ctive(Text)?Color and
    Windows is setting them from the window decorations (CAPTION)?!
    
    So let's get rid of all these settings for Qt5 and kde4.
    
    Change-Id: Id9497dc067e4718d25d24c5795589b6c028a8817
    Reviewed-on: https://gerrit.libreoffice.org/65028
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index c123e8e638ee..87637916fe79 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -836,12 +836,6 @@ void Qt5Frame::UpdateSettings(AllSettings& rSettings)
 
     style.SetToolbarIconSize(ToolbarIconSize::Large);
 
-    style.SetActiveColor(toColor(pal.color(QPalette::Active, QPalette::Window)));
-    // rely on VCL for style.SetDeactiveColor
-
-    style.SetActiveTextColor(toColor(pal.color(QPalette::Active, QPalette::WindowText)));
-    style.SetDeactiveTextColor(toColor(pal.color(QPalette::Inactive, QPalette::WindowText)));
-
     Color aFore = toColor(pal.color(QPalette::Active, QPalette::WindowText));
     Color aBack = toColor(pal.color(QPalette::Active, QPalette::Window));
     Color aText = toColor(pal.color(QPalette::Active, QPalette::Text));
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
index e9b5f4ecc1ba..c92551fe6ca2 100644
--- a/vcl/unx/kde4/KDESalFrame.cxx
+++ b/vcl/unx/kde4/KDESalFrame.cxx
@@ -170,12 +170,6 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
 
     style.SetToolbarIconSize( ToolbarIconSize::Large );
 
-    style.SetActiveColor(toColor(pal.color(QPalette::Active, QPalette::Window)));
-    style.SetDeactiveColor(toColor(pal.color(QPalette::Inactive, QPalette::Window)));
-
-    style.SetActiveTextColor(toColor(pal.color(QPalette::Active, QPalette::WindowText)));
-    style.SetDeactiveTextColor(toColor(pal.color(QPalette::Inactive, QPalette::WindowText)));
-
     // Font
     vcl::Font aFont = toFont( QApplication::font(), rSettings.GetUILanguageTag().getLocale() );
     style.BatchSetFonts( aFont, aFont );


More information about the Libreoffice-commits mailing list