Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kf6-kguiaddons for openSUSE:Factory 
checked in at 2025-10-12 22:22:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kf6-kguiaddons (Old)
 and      /work/SRC/openSUSE:Factory/.kf6-kguiaddons.new.18484 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kf6-kguiaddons"

Sun Oct 12 22:22:06 2025 rev:20 rq:1310849 version:6.19.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kf6-kguiaddons/kf6-kguiaddons.changes    
2025-09-15 19:52:58.747284531 +0200
+++ /work/SRC/openSUSE:Factory/.kf6-kguiaddons.new.18484/kf6-kguiaddons.changes 
2025-10-12 22:22:47.081754549 +0200
@@ -1,0 +2,17 @@
+Fri Oct 10 09:43:46 UTC 2025 - Christophe Marin <[email protected]>
+
+- Add missing build dependency
+
+-------------------------------------------------------------------
+Tue Oct  7 17:06:18 UTC 2025 - Christophe Marin <[email protected]>
+
+- Update to 6.19.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/6/6.19.0
+- Changes since 6.18.0:
+  * Update dependency version to 6.19.0
+  * Make KColorUtils available to QML
+  * Update version to 6.19.0
+
+-------------------------------------------------------------------

Old:
----
  kguiaddons-6.18.0.tar.xz
  kguiaddons-6.18.0.tar.xz.sig

New:
----
  kguiaddons-6.19.0.tar.xz
  kguiaddons-6.19.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kf6-kguiaddons.spec ++++++
--- /var/tmp/diff_new_pack.HdEzNA/_old  2025-10-12 22:22:47.985792403 +0200
+++ /var/tmp/diff_new_pack.HdEzNA/_new  2025-10-12 22:22:47.985792403 +0200
@@ -32,11 +32,11 @@
 %define mypython_sitearch %{expand:%%%{mypython}_sitearch}
 %endif
 
-# Full KF6 version (e.g. 6.18.0)
+# Full KF6 version (e.g. 6.19.0)
 %{!?_kf6_version: %global _kf6_version %{version}}
 %bcond_without released
 Name:           kf6-kguiaddons
-Version:        6.18.0
+Version:        6.19.0
 Release:        0
 Summary:        Utilities for graphical user interfaces
 License:        LGPL-2.1-or-later
@@ -53,6 +53,7 @@
 BuildRequires:  cmake(PlasmaWaylandProtocols)
 BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
 BuildRequires:  cmake(Qt6Gui) >= %{qt6_version}
+BuildRequires:  cmake(Qt6Qml) >= %{qt6_version}
 BuildRequires:  cmake(Qt6ToolsTools) >= %{qt6_version}
 BuildRequires:  cmake(Qt6WaylandClient) >= %{qt6_version}
 BuildRequires:  pkgconfig(wayland-client) >= 1.15


++++++ kguiaddons-6.18.0.tar.xz -> kguiaddons-6.19.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/.gitignore 
new/kguiaddons-6.19.0/.gitignore
--- old/kguiaddons-6.18.0/.gitignore    2025-09-08 10:12:31.000000000 +0200
+++ new/kguiaddons-6.19.0/.gitignore    2025-10-05 14:36:11.000000000 +0200
@@ -27,3 +27,4 @@
 .idea
 /cmake-build*
 .cache
+.qmlls.ini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/CMakeLists.txt 
new/kguiaddons-6.19.0/CMakeLists.txt
--- old/kguiaddons-6.18.0/CMakeLists.txt        2025-09-08 10:12:31.000000000 
+0200
+++ new/kguiaddons-6.19.0/CMakeLists.txt        2025-10-05 14:36:11.000000000 
+0200
@@ -1,10 +1,10 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "6.18.0") # handled by release scripts
+set(KF_VERSION "6.19.0") # handled by release scripts
 project(KGuiAddons VERSION ${KF_VERSION})
 
 include(FeatureSummary)
-find_package(ECM 6.18.0  NO_MODULE)
+find_package(ECM 6.19.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/src/colors/kcolorutils.h 
new/kguiaddons-6.19.0/src/colors/kcolorutils.h
--- old/kguiaddons-6.18.0/src/colors/kcolorutils.h      2025-09-08 
10:12:31.000000000 +0200
+++ new/kguiaddons-6.19.0/src/colors/kcolorutils.h      2025-10-05 
14:36:11.000000000 +0200
@@ -15,6 +15,8 @@
 
 class QColor;
 
+// TODO KF7: turn this into a Q_GADGET class with static members to avoid the 
need for the KColorUtilsSingleton QML wrapper
+
 /*!
  * \namespace KColorUtils
  * \inmodule KGuiAddons
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/src/qml/CMakeLists.txt 
new/kguiaddons-6.19.0/src/qml/CMakeLists.txt
--- old/kguiaddons-6.18.0/src/qml/CMakeLists.txt        2025-09-08 
10:12:31.000000000 +0200
+++ new/kguiaddons-6.19.0/src/qml/CMakeLists.txt        2025-10-05 
14:36:11.000000000 +0200
@@ -1,7 +1,11 @@
 # SPDX-FileCopyrightText: 2024 Volker Krause <[email protected]>
 # SPDX-License-Identifier: BSD-2-Clause
 
-ecm_add_qml_module(kguiaddonsqml URI "org.kde.guiaddons" 
GENERATE_PLUGIN_SOURCE INSTALLED_PLUGIN_TARGET KF6::kguiaddonsqml)
-target_sources(kguiaddonsqml PRIVATE types.h)
+ecm_add_qml_module(kguiaddonsqml URI "org.kde.guiaddons" CLASS_NAME 
KGuiAddonsPlugin INSTALLED_PLUGIN_TARGET KF6::kguiaddonsqml)
+target_sources(kguiaddonsqml PRIVATE
+    kcolorutilssingleton.cpp
+    kguiaddonsplugin.cpp
+    types.h
+)
 target_link_libraries(kguiaddonsqml PRIVATE KF6GuiAddons Qt6::Qml)
 ecm_finalize_qml_module(kguiaddonsqml EXPORT KF6GuiAddonsTargets)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/src/qml/kcolorutilssingleton.cpp 
new/kguiaddons-6.19.0/src/qml/kcolorutilssingleton.cpp
--- old/kguiaddons-6.18.0/src/qml/kcolorutilssingleton.cpp      1970-01-01 
01:00:00.000000000 +0100
+++ new/kguiaddons-6.19.0/src/qml/kcolorutilssingleton.cpp      2025-10-05 
14:36:11.000000000 +0200
@@ -0,0 +1,58 @@
+/* SPDX-FileCopyrightText: 2020 Noah Davis <[email protected]>
+ * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR 
LicenseRef-KDE-Accepted-LGPL
+ */
+
+#include "kcolorutilssingleton.h"
+#include <KColorUtils>
+
+qreal KColorUtilsSingleton::hue(const QColor &color)
+{
+    return KColorUtils::hue(color);
+}
+
+qreal KColorUtilsSingleton::chroma(const QColor &color)
+{
+    return KColorUtils::chroma(color);
+}
+
+qreal KColorUtilsSingleton::luma(const QColor &color)
+{
+    return KColorUtils::luma(color);
+}
+
+qreal KColorUtilsSingleton::contrastRatio(const QColor &color1, const QColor 
&color2)
+{
+    return KColorUtils::contrastRatio(color1, color2);
+}
+
+QColor KColorUtilsSingleton::hcyColor(qreal hue, qreal chroma, qreal luma, 
qreal alpha)
+{
+    return KColorUtils::hcyColor(hue, chroma, luma, alpha);
+}
+
+QColor KColorUtilsSingleton::lighten(const QColor &color, qreal amount, qreal 
chromaInverseGain)
+{
+    return KColorUtils::lighten(color, amount, chromaInverseGain);
+}
+
+QColor KColorUtilsSingleton::darken(const QColor &color, qreal amount, qreal 
chromaGain)
+{
+    return KColorUtils::darken(color, amount, chromaGain);
+}
+
+QColor KColorUtilsSingleton::shade(const QColor &color, qreal lumaAmount, 
qreal chromaAmount)
+{
+    return KColorUtils::shade(color, lumaAmount, chromaAmount);
+}
+
+QColor KColorUtilsSingleton::tint(const QColor &base, const QColor &color, 
qreal amount)
+{
+    return KColorUtils::tint(base, color, amount);
+}
+
+QColor KColorUtilsSingleton::mix(const QColor &color1, const QColor &color2, 
qreal bias)
+{
+    return KColorUtils::mix(color1, color2, bias);
+}
+
+#include "moc_kcolorutilssingleton.cpp"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/src/qml/kcolorutilssingleton.h 
new/kguiaddons-6.19.0/src/qml/kcolorutilssingleton.h
--- old/kguiaddons-6.18.0/src/qml/kcolorutilssingleton.h        1970-01-01 
01:00:00.000000000 +0100
+++ new/kguiaddons-6.19.0/src/qml/kcolorutilssingleton.h        2025-10-05 
14:36:11.000000000 +0200
@@ -0,0 +1,28 @@
+/* SPDX-FileCopyrightText: 2020 Noah Davis <[email protected]>
+ * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR 
LicenseRef-KDE-Accepted-LGPL
+ */
+
+#ifndef KCOLORUTILSSINGLETON_H
+#define KCOLORUTILSSINGLETON_H
+
+#include <QColor>
+#include <QObject>
+#include <qqml.h>
+
+class KColorUtilsSingleton
+{
+    Q_GADGET
+public:
+    Q_INVOKABLE qreal hue(const QColor &color);
+    Q_INVOKABLE qreal chroma(const QColor &color);
+    Q_INVOKABLE qreal luma(const QColor &color);
+    Q_INVOKABLE QColor hcyColor(qreal hue, qreal chroma, qreal luma, qreal 
alpha = 1.0);
+    Q_INVOKABLE qreal contrastRatio(const QColor &color1, const QColor 
&color2);
+    Q_INVOKABLE QColor lighten(const QColor &color, qreal amount = 0.5, qreal 
chromaInverseGain = 1.0);
+    Q_INVOKABLE QColor darken(const QColor &color, qreal amount = 0.5, qreal 
chromaGain = 1.0);
+    Q_INVOKABLE QColor shade(const QColor &color, qreal lumaAmount, qreal 
chromaAmount = 0.0);
+    Q_INVOKABLE QColor tint(const QColor &base, const QColor &color, qreal 
amount = 0.3);
+    Q_INVOKABLE QColor mix(const QColor &color1, const QColor &color2, qreal 
bias = 0.5);
+};
+
+#endif // KCOLORUTILSSINGLETON_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/src/qml/kguiaddonsplugin.cpp 
new/kguiaddons-6.19.0/src/qml/kguiaddonsplugin.cpp
--- old/kguiaddons-6.18.0/src/qml/kguiaddonsplugin.cpp  1970-01-01 
01:00:00.000000000 +0100
+++ new/kguiaddons-6.19.0/src/qml/kguiaddonsplugin.cpp  2025-10-05 
14:36:11.000000000 +0200
@@ -0,0 +1,25 @@
+/*
+    SPDX-FileCopyrightText: ⓒ 2025 Volker Krause <[email protected]>
+    SPDX-License-Identifier: LGPL-2.0-or-later
+*/
+
+#include "kcolorutilssingleton.h"
+
+#include <QQmlEngine>
+#include <QQmlExtensionPlugin>
+
+class KGuiAddonsPlugin : public QQmlExtensionPlugin
+{
+    Q_OBJECT
+    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
+
+public:
+    void registerTypes(const char *uri) override
+    {
+        qmlRegisterSingletonType(uri, 1, 0, "ColorUtils", [](QQmlEngine 
*engine, QJSEngine *) -> QJSValue {
+            return engine->toScriptValue(KColorUtilsSingleton());
+        });
+    }
+};
+
+#include "kguiaddonsplugin.moc"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kguiaddons-6.18.0/tests/kcolorutils.qml 
new/kguiaddons-6.19.0/tests/kcolorutils.qml
--- old/kguiaddons-6.18.0/tests/kcolorutils.qml 1970-01-01 01:00:00.000000000 
+0100
+++ new/kguiaddons-6.19.0/tests/kcolorutils.qml 2025-10-05 14:36:11.000000000 
+0200
@@ -0,0 +1,88 @@
+/*
+    SPDX-FileCopyrightText: ⓒ 2025 Volker Krause <[email protected]>
+    SPDX-License-Identifier: LGPL-2.0-or-later
+*/
+
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import org.kde.guiaddons
+
+ColumnLayout {
+    Label { text: "Mixing" }
+    RowLayout {
+        TextField {
+            id: color1
+            text: "#ff0000"
+        }
+        TextField {
+            id: color2
+            text: "#00ff00"
+        }
+    }
+    Text {
+        text: "Hue: " + ColorUtils.hue(color1.text) + " Chroma: " + 
ColorUtils.chroma(color1.text) + " Luma: " + ColorUtils.luma(color1.text)
+    }
+    Text {
+        text: "Contrast ratio: " + ColorUtils.contrastRatio(color1.text, 
color2.text)
+    }
+    RowLayout {
+        Slider {
+            id: lightSlider1
+        }
+        Slider {
+            id: lightSlider2
+        }
+        Rectangle {
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            color: ColorUtils.lighten(color1.text, lightSlider1.value, 
lightSlider2.value)
+        }
+    }
+    RowLayout {
+        Slider {
+            id: darkSlider1
+        }
+        Slider {
+            id: darkSlider2
+        }
+        Rectangle {
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            color: ColorUtils.darken(color1.text, darkSlider1.value, 
darkSlider2.value)
+        }
+    }
+    RowLayout {
+        Slider {
+            id: shadeSlider1
+        }
+        Slider {
+            id: shadeSlider2
+        }
+        Rectangle {
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            color: ColorUtils.shade(color1.text, shadeSlider1.value, 
shadeSlider2.value)
+        }
+    }
+    RowLayout {
+        Slider {
+            id: tintSlider
+        }
+        Rectangle {
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            color: ColorUtils.tint(color1.text, color2.text, tintSlider.value)
+        }
+    }
+    RowLayout {
+        Slider {
+            id: mixSlider
+        }
+        Rectangle {
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            color: ColorUtils.mix(color1.text, color2.text, mixSlider.value)
+        }
+    }
+}

Reply via email to