Hello community, here is the log from the commit of package applet-window-buttons for openSUSE:Factory checked in at 2020-02-14 16:38:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/applet-window-buttons (Old) and /work/SRC/openSUSE:Factory/.applet-window-buttons.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "applet-window-buttons" Fri Feb 14 16:38:16 2020 rev:7 rq:774193 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/applet-window-buttons/applet-window-buttons.changes 2020-01-29 13:19:15.534196780 +0100 +++ /work/SRC/openSUSE:Factory/.applet-window-buttons.new.26092/applet-window-buttons.changes 2020-02-14 16:38:25.347620783 +0100 @@ -1,0 +2,7 @@ +Thu Feb 13 15:21:26 UTC 2020 - Cor Blom <corne...@solcon.nl> + +- Update to version 0.8.1: + * fix compatibility with Plasma 5.18 (Rodrigo Pedra Brum) + * never hide buttons for AlwaysVisible visibility state + +------------------------------------------------------------------- Old: ---- applet-window-buttons-0.8.0.tar.gz New: ---- applet-window-buttons-0.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ applet-window-buttons.spec ++++++ --- /var/tmp/diff_new_pack.TpluAI/_old 2020-02-14 16:38:26.675621523 +0100 +++ /var/tmp/diff_new_pack.TpluAI/_new 2020-02-14 16:38:26.679621525 +0100 @@ -20,7 +20,7 @@ %define qt5_version 5.9 Name: applet-window-buttons -Version: 0.8.0 +Version: 0.8.1 Release: 0 Summary: Plasma 5 applet to show window buttons in panels License: GPL-2.0-or-later ++++++ applet-window-buttons-0.8.0.tar.gz -> applet-window-buttons-0.8.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/CHANGELOG.md new/applet-window-buttons-0.8.1/CHANGELOG.md --- old/applet-window-buttons-0.8.0/CHANGELOG.md 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/CHANGELOG.md 2020-02-12 16:40:28.000000000 +0100 @@ -1,5 +1,10 @@ ### CHANGELOG +#### Version 0.8.1 + +* fix compatibility with Plasma 5.18 (Rodrigo Pedra Brum) +* never hide buttons for AlwaysVisible visibility state + #### Version 0.8.0 * fix which plasma theme colors are used for buttons when Colors:Plasma Theme is chosen diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/CMakeLists.txt new/applet-window-buttons-0.8.1/CMakeLists.txt --- old/applet-window-buttons-0.8.0/CMakeLists.txt 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/CMakeLists.txt 2020-02-12 16:40:28.000000000 +0100 @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR) set(CMAKE_CXX_STANDARD 14) -set(VERSION 0.8.0) +set(VERSION 0.8.1) set(AUTHOR "Michail Vourlakos") set(EMAIL "mvourla...@gmail.com") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/libappletdecoration/decorationpalette.cpp new/applet-window-buttons-0.8.1/libappletdecoration/decorationpalette.cpp --- old/applet-window-buttons-0.8.0/libappletdecoration/decorationpalette.cpp 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/libappletdecoration/decorationpalette.cpp 2020-02-12 16:40:28.000000000 +0100 @@ -136,7 +136,12 @@ m_activeTitleBarColor = wmConfig.readEntry("activeBackground", m_palette.color(QPalette::Active, QPalette::Highlight)); m_inactiveTitleBarColor = wmConfig.readEntry("inactiveBackground", m_inactiveFrameColor); m_activeForegroundColor = wmConfig.readEntry("activeForeground", m_palette.color(QPalette::Active, QPalette::HighlightedText)); + +#if QT_VERSION >= QT_VERSION_CHECK(5,13,0) + m_inactiveForegroundColor = wmConfig.readEntry("inactiveForeground", m_activeForegroundColor.darker()); +#else m_inactiveForegroundColor = wmConfig.readEntry("inactiveForeground", m_activeForegroundColor.dark()); +#endif KConfigGroup windowColorsConfig(config, QStringLiteral("Colors:Window")); m_warningForegroundColor = windowColorsConfig.readEntry("ForegroundNegative", QColor(237, 21, 2)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/libappletdecoration/previewclient.cpp new/applet-window-buttons-0.8.1/libappletdecoration/previewclient.cpp --- old/applet-window-buttons-0.8.0/libappletdecoration/previewclient.cpp 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/libappletdecoration/previewclient.cpp 2020-02-12 16:40:28.000000000 +0100 @@ -396,6 +396,12 @@ } #endif +#if KDECORATION2_VERSION_MINOR >= 18 +QSize PreviewClient::size() const +{ + return {m_width, m_height}; +} +#endif void PreviewClient::requestClose() { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/libappletdecoration/previewclient.h new/applet-window-buttons-0.8.1/libappletdecoration/previewclient.h --- old/applet-window-buttons-0.8.0/libappletdecoration/previewclient.h 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/libappletdecoration/previewclient.h 2020-02-12 16:40:28.000000000 +0100 @@ -107,6 +107,10 @@ void requestHideToolTip() override; #endif +#if KDECORATION2_VERSION_MINOR >= 18 + QSize size() const override; +#endif + void requestClose() override; void requestContextHelp() override; void requestToggleMaximization(Qt::MouseButtons buttons) override; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/package/contents/ui/main.qml new/applet-window-buttons-0.8.1/package/contents/ui/main.qml --- old/applet-window-buttons-0.8.0/package/contents/ui/main.qml 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/package/contents/ui/main.qml 2020-02-12 16:40:28.000000000 +0100 @@ -52,9 +52,14 @@ readonly property bool plasma515: AppletDecoration.Environment.plasmaDesktopVersion >= AppletDecoration.Environment.makeVersion(5,15,0) readonly property bool mustHide: { + if (visibility === AppletDecoration.Types.AlwaysVisible) { + return false; + } + if (visibility === AppletDecoration.Types.ActiveWindow && !existsWindowActive) { return true; } + if (visibility === AppletDecoration.Types.ActiveMaximizedWindow && (!isLastActiveWindowMaximized || (inPlasmaPanel && !existsWindowActive))) { return true; @@ -73,7 +78,6 @@ readonly property bool emptySpaceEnabled: ( (visibility !== AppletDecoration.Types.AlwaysVisible) && (plasmoid.configuration.hiddenState === AppletDecoration.Types.EmptySpace) ) - readonly property int containmentType: plasmoid.configuration.containmentType readonly property int disabledMaximizedBorders: plasmoid.configuration.disabledMaximizedBorders readonly property int visibility: plasmoid.configuration.visibility @@ -490,6 +494,10 @@ localY: y visible: { + if (visibility === AppletDecoration.Types.AlwaysVisible) { + return true; + } + if (type === AppletDecoration.Types.Close) { return root.isLastActiveWindowClosable; } else if (type === AppletDecoration.Types.Maximize) { @@ -603,8 +611,11 @@ buttonType: model.buttonType auroraeTheme: auroraeThemeEngine - visible: { + if (visibility === AppletDecoration.Types.AlwaysVisible) { + return true; + } + if (buttonType === AppletDecoration.Types.Close) { return root.isLastActiveWindowClosable; } else if (buttonType === AppletDecoration.Types.Maximize) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/applet-window-buttons-0.8.0/package/metadata.desktop new/applet-window-buttons-0.8.1/package/metadata.desktop --- old/applet-window-buttons-0.8.0/package/metadata.desktop 2020-01-23 16:52:27.000000000 +0100 +++ new/applet-window-buttons-0.8.1/package/metadata.desktop 2020-02-12 16:40:28.000000000 +0100 @@ -15,7 +15,7 @@ X-KDE-PluginInfo-Email=mvourla...@gmail.com X-KDE-PluginInfo-License=GPLv2 X-KDE-PluginInfo-Name=org.kde.windowbuttons -X-KDE-PluginInfo-Version=0.8.0 +X-KDE-PluginInfo-Version=0.8.1 X-KDE-PluginInfo-Website=https://github.com/psifidotos/applet-window-buttons X-KDE-ServiceTypes=Plasma/Applet