Hello community, here is the log from the commit of package plasma5-addons for openSUSE:Factory checked in at 2017-01-31 12:25:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plasma5-addons (Old) and /work/SRC/openSUSE:Factory/.plasma5-addons.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma5-addons" Changes: -------- --- /work/SRC/openSUSE:Factory/plasma5-addons/plasma5-addons.changes 2017-01-04 17:26:24.755520188 +0100 +++ /work/SRC/openSUSE:Factory/.plasma5-addons.new/plasma5-addons.changes 2017-02-03 18:56:02.580951209 +0100 @@ -1,0 +2,28 @@ +Sat Jan 28 09:54:36 UTC 2017 - fab...@ritter-vogt.de + +- Add upstream patches from master to improve appearance of color picker: + * 0001-Color-Picker-Add-border-around-color-if-contrast-to-.patch + * 0002-Color-Picker-Add-contrast-frame-around-colors-in-pop.patch + +------------------------------------------------------------------- +Thu Jan 26 19:58:55 CET 2017 - fab...@ritter-vogt.de + +- Update to 5.9.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/plasma-5.9.0.php +- Changes since 5.8.95: + * Fix pixel alignment and non-standard height in QuickShare delegate + * [User Switcher] Just use Row's implicitWidth instead of calculating it manually + +------------------------------------------------------------------- +Thu Jan 12 20:39:58 UTC 2017 - fab...@ritter-vogt.de + +- Update to 5.8.95 (Plasma 5.9 Beta) + * New feature release + * For more details please see: + https://www.kde.org/announcements/plasma-5.8.95.php +- Changes: + * See https://www.kde.org/announcements/plasma-5.8.5-5.8.95-changelog.php#plasma-addons + +------------------------------------------------------------------- Old: ---- kdeplasma-addons-5.8.5.tar.xz New: ---- 0001-Color-Picker-Add-border-around-color-if-contrast-to-.patch 0002-Color-Picker-Add-contrast-frame-around-colors-in-pop.patch kdeplasma-addons-5.9.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plasma5-addons.spec ++++++ --- /var/tmp/diff_new_pack.bu8xmP/_old 2017-02-03 18:56:03.064883252 +0100 +++ /var/tmp/diff_new_pack.bu8xmP/_new 2017-02-03 18:56:03.064883252 +0100 @@ -1,7 +1,7 @@ # # spec file for package plasma5-addons # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,17 +18,21 @@ %bcond_without lang Name: plasma5-addons -Version: 5.8.5 +Version: 5.9.0 Release: 0 -# Full Plasma 5 version (e.g. 5.8.5) +# Full Plasma 5 version (e.g. 5.9.0) %{!?_plasma5_bugfix: %global _plasma5_bugfix %{version}} -# Lasted ABI-stable Plasma (e.g. 5.8 in KF5, but 5.8.90 in KUF) +# Lasted ABI-stable Plasma (e.g. 5.8 in KF5, but 5.9.0 in KUF) %{!?_plasma5_version: %global _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')} Summary: Additional Plasma5 Widgets License: LGPL-2.1 and GPL-2.0+ and GPL-3.0 Group: System/GUI/KDE Url: http://www.kde.org/ -Source: http://download.kde.org/stable/plasma/%{version}/kdeplasma-addons-%{version}.tar.xz +Source: kdeplasma-addons-%{version}.tar.xz +# PATCH-FIX-UPSTREAM 0001-Color-Picker-Add-border-around-color-if-contrast-to-.patch k...@privat.broulik.de -- [Color Picker] Add border around color if contrast to surrounding view is too little +Patch200: 0001-Color-Picker-Add-border-around-color-if-contrast-to-.patch +# PATCH-FIX-UPSTREAM 0002-Color-Picker-Add-contrast-frame-around-colors-in-pop.patch k...@privat.broulik.de -- [Color Picker] Add contrast frame around colors in popup +Patch201: 0002-Color-Picker-Add-contrast-frame-around-colors-in-pop.patch BuildRequires: kf5-filesystem BuildRequires: cmake(KF5Activities) >= 5.25.0 BuildRequires: cmake(KF5Config) >= 5.25.0 @@ -78,6 +82,8 @@ %lang_package %prep %setup -q -n kdeplasma-addons-%{version} +%patch200 -p1 +%patch201 -p1 %build %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} @@ -98,6 +104,7 @@ %doc COPYING* %config %{_kf5_configdir}/comic.knsrc %{_kf5_libdir}/libplasmacomicprovidercore.so.* +%{_libdir}/libplasmapotdprovidercore.so* %{_kf5_libdir}/libplasmaweather.so* %{_kf5_servicetypesdir}/ %{_kf5_plugindir}/ ++++++ 0001-Color-Picker-Add-border-around-color-if-contrast-to-.patch ++++++ >From ef3fd95a32572c20b8e8e407b45726be4a95bcfd Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik <k...@privat.broulik.de> Date: Thu, 26 Jan 2017 16:21:09 +0100 Subject: [PATCH 1/2] [Color Picker] Add border around color if contrast to surrounding view is too little When picking a light color on a light panel, it might not be obvious that the color is shown there. Add a border around the picked color if contrast is too little. Differential Revision: https://phabricator.kde.org/D4224 --- applets/colorpicker/package/contents/ui/main.qml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/applets/colorpicker/package/contents/ui/main.qml b/applets/colorpicker/package/contents/ui/main.qml index b45d00486..845391cd8 100644 --- a/applets/colorpicker/package/contents/ui/main.qml +++ b/applets/colorpicker/package/contents/ui/main.qml @@ -189,6 +189,35 @@ Item { height: units.roundToIconSize(pickerIcon.height) * 0.75 radius: width / 2 color: root.recentColor + + function luminance(color) { + if (!color) { + return 0; + } + + // formula for luminance according to https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef + + var a = [color.r, color.g, color.b].map(function (v) { + return (v <= 0.03928) ? v / 12.92 : + Math.pow( ((v + 0.055) / 1.055), 2.4 ); + }); + + return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722; + } + + border { + color: theme.textColor + width: { + var contrast = luminance(theme.viewBackgroundColor) / luminance(colorCircle.color) + 0.05; + + // show border only if there's too little contrast to the surrounding view + if (contrast > 3) { + return 0; + } else { + return Math.round(Math.max(units.devicePixelRatio, width / 20)); + } + } + } } } } -- 2.11.0 ++++++ 0002-Color-Picker-Add-contrast-frame-around-colors-in-pop.patch ++++++ >From 75fd9dda750c6bc192e56ed16d34a0920bdf41df Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik <k...@privat.broulik.de> Date: Thu, 26 Jan 2017 16:59:48 +0100 Subject: [PATCH 2/2] [Color Picker] Add contrast frame around colors in popup This adds a frame around the color sections, makes it look a lot nicer and improves contrast. Since here the frame takes only a minor portion of surface area compared to the circle in a panel, I opted not to base it on luminosity, also for consistency's sake when there's 9 different colors in one view. Differential Revision: https://phabricator.kde.org/D4298 --- applets/colorpicker/package/contents/ui/main.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/applets/colorpicker/package/contents/ui/main.qml b/applets/colorpicker/package/contents/ui/main.qml index 845391cd8..ba1920a0c 100644 --- a/applets/colorpicker/package/contents/ui/main.qml +++ b/applets/colorpicker/package/contents/ui/main.qml @@ -318,9 +318,18 @@ Item { color: delegateMouse.currentColor + border { + color: theme.textColor + width: Math.round(units.devicePixelRatio) + } + Rectangle { - anchors.bottom: parent.bottom - width: parent.width + anchors { + bottom: parent.bottom + left: parent.left + right: parent.right + margins: rect.border.width + } height: colorLabel.contentHeight + 2 * units.smallSpacing color: theme.backgroundColor opacity: 0.8 -- 2.11.0 ++++++ kdeplasma-addons-5.8.5.tar.xz -> kdeplasma-addons-5.9.0.tar.xz ++++++ ++++ 90478 lines of diff (skipped)