Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package koi for openSUSE:Factory checked in at 2024-06-28 15:47:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/koi (Old) and /work/SRC/openSUSE:Factory/.koi.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "koi" Fri Jun 28 15:47:01 2024 rev:5 rq:1183644 version:0.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/koi/koi.changes 2024-06-17 19:29:04.937348059 +0200 +++ /work/SRC/openSUSE:Factory/.koi.new.18349/koi.changes 2024-06-28 15:48:57.898213066 +0200 @@ -1,0 +2,6 @@ +Thu Jun 27 16:14:18 UTC 2024 - Christophe Marin <christo...@krop.fr> + +- Update to 0.3.1 + * Added Click Mouse Wheel to Switch between LIGHT/DARK Themes + +------------------------------------------------------------------- Old: ---- koi-0.3.tar.gz New: ---- koi-0.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ koi.spec ++++++ --- /var/tmp/diff_new_pack.PMcfJH/_old 2024-06-28 15:49:01.730353259 +0200 +++ /var/tmp/diff_new_pack.PMcfJH/_new 2024-06-28 15:49:01.730353259 +0200 @@ -17,7 +17,7 @@ Name: koi -Version: 0.3 +Version: 0.3.1 Release: 0 Summary: Theme scheduling for the KDE Plasma Desktop License: LGPL-3.0-only ++++++ koi-0.3.tar.gz -> koi-0.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/README.md new/Koi-0.3.1/README.md --- old/Koi-0.3/README.md 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/README.md 2024-06-27 17:04:30.000000000 +0200 @@ -10,13 +10,14 @@ ## Features -- Toggle between light and dark presets based on time. -- Change Plasma style. -- Change Qt colour scheme. -- Change Icon theme. -- Change GTK theme. -- Change wallpaper. -- Hide application to system tray. +- Toggle between light and dark presets based on time +- Change Plasma style +- Change Qt colour scheme +- Change Icon theme +- Change GTK theme +- Change wallpaper +- Hide application to system tray +- Toggle between LIGHT/DARK themes by clicking mouse wheel ___ @@ -37,9 +38,10 @@ Search for: ***Autostart*** -**Plasma** version **5** navigate to ***System Settings*** -> ***Startup and Shutdown*** -> ***Autostart***; +**Plasma** version **5** navigate to ***System Settings*** -> ***Startup and Shutdown*** -> ***Autostart***; and select "`+ Add...` -> `+ Add Application` -> `Utilities` -> `Koi`" -**Plasma** version **6** navigate to ***System Settings*** -> ***System*** -> ***Autostart***, and select "`+ Add...`" + +**Plasma** version **6** navigate to ***System Settings*** -> ***System*** -> ***Autostart***, and select "`+ Add...` -> `+ Add Application` -> `Utilities` -> `Koi`" In addition, it is recommended having the option to *Start Koi hidden* checked, this will prevent Koi from popping up every time you start your operating system. @@ -47,7 +49,7 @@ ## Get Koi -*Latest version: 0.3* +*Latest version: 0.3.1* ### Building from SOURCE @@ -152,6 +154,16 @@ - ``` 'kde-plasma-desktop' 'plasma-desktop' ``` +### Void Linux + +**Build Dependencies:** + +- ``` 'gcc' 'cmake' 'extra-cmake-modules' 'qt6-base-devel' 'kf6-kcoreaddons-devel' 'kf6-kconfig-devel' 'kf6-kwidgetsaddons-devel' ``` + +**Run Dependencies:** + +- ``` 'plasma-desktop' 'plasma-integration' 'qt6-base' ``` + ### *NixOS - [[NUR]](https://nur.nix-community.org/repos/baduhai/)* - *Install to your NIX profile with `nix-env -iA koi -f https://github.com/baduhai/nur/tarball/master`, to add to you nixos configuration, follow the [Instructions](https://github.com/nix-community/nur#installation) on the NUR repo.* @@ -163,9 +175,12 @@ * William Franco Abdul Hai [(baduhai)](https://github.com/baduhai) * Martin Stibor [(Martin von Reichenberg)](https://github.com/MartinVonReichenberg) * [ducvietcao](https://github.com/ducvietcao) +* [financelurker](https://github.com/financelurker) +* [ari melody](https://github.com/arimelody) * [toboil-features](https://github.com/toboil-features) + ## References The following is a list of resources that was used as reference and inspiration for writing Koi. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' "old/Koi-0.3/development/Arch Linux/PKGBUILD" "new/Koi-0.3.1/development/Arch Linux/PKGBUILD" --- "old/Koi-0.3/development/Arch Linux/PKGBUILD" 1970-01-01 01:00:00.000000000 +0100 +++ "new/Koi-0.3.1/development/Arch Linux/PKGBUILD" 2024-06-27 17:04:30.000000000 +0200 @@ -0,0 +1,40 @@ +# Author: William Franco Abdul Hai <william...@hotmail.com> +# Contributor: Martin Stibor <martin.von.reichenb...@protonmail.com> +# Maintainer: Martin Stibor <martin.von.reichenb...@protonmail.com> + +pkgname='koi' +_pkgname='Koi' +pkgver=0.3.1 +pkgrel=1 +pkgdesc="Scheduled LIGHT/DARK Theme Switching for the KDE Plasma Desktop" +arch=('x86_64' 'aarch64') +url="https://github.com/baduhai/Koi" +license=('LGPL3') +depends=('gcc-libs' 'plasma-desktop' 'plasma-integration' 'plasma-workspace' 'qt6-svg' 'hicolor-icon-theme') +makedepends=('gcc' 'qt6-base' 'qt6-tools' 'cmake' 'extra-cmake-modules' 'desktop-file-utils' 'fdupes') +optdepends=('xsettingsd: Apply settings to GTK applications on the fly' + 'kvantum: Powerful extra customisable themes') +source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('SKIP') + +build() { + cmake -S "${srcdir}/${_pkgname}-${pkgver}/src/" \ + -B "${srcdir}/${_pkgname}-${pkgver}/src/build/" \ + -DCMAKE_INSTALL_PREFIX="/usr/" + + make -C "${srcdir}/${_pkgname}-${pkgver}/src/build/" +} + +check() { + desktop-file-validate "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop" + fdupes -r -s "${srcdir}/" +} + +package() { + make -C "${srcdir}/${_pkgname}-${pkgver}/src/build/" DESTDIR="${pkgdir}" install + + install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/" + + desktop-file-validate "${pkgdir}/usr/share/applications/${pkgname}.desktop" + fdupes -r -s "${pkgdir}/" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/development/Fedora/Koi.spec new/Koi-0.3.1/development/Fedora/Koi.spec --- old/Koi-0.3/development/Fedora/Koi.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/Koi-0.3.1/development/Fedora/Koi.spec 2024-06-27 17:04:30.000000000 +0200 @@ -0,0 +1,70 @@ +Name: Koi +Version: 0.3.1 +Release: 1%{?dist} +Summary: Scheduling LIGHT/DARK Theme Converter for the KDE Plasma Desktop +License: LGPL-3.0-only +URL: https://github.com/baduhai/%{name} +Source0: %{url}/archive/%{version}/%{version}.tar.gz #Koi-%{version}.tar.gz + +BuildRequires: cmake(Qt6Core) +BuildRequires: cmake(Qt6DBus) +BuildRequires: cmake(Qt6Gui) +BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6Test) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: cmake(Qt6Xml) + +BuildRequires: cmake(KF6Config) +BuildRequires: cmake(KF6ConfigWidgets) +BuildRequires: cmake(KF6CoreAddons) +BuildRequires: cmake(KF6WidgetsAddons) + +BuildRequires: extra-cmake-modules + +BuildRequires: desktop-file-utils +BuildRequires: fdupes + +Requires: plasma-desktop plasma-integration plasma-workspace hicolor-icon-theme + +%description +Koi is a program designed to provide the KDE Plasma Desktop functionality to +automatically switch between light and dark themes. + +%prep +%autosetup -p1 -n Koi-%{version} + +%build +%cmake "src/" +%cmake_build + +%install +%cmake_install + +%check +desktop-file-validate "%{buildroot}/%{_datadir}/applications/koi.desktop" +%fdupes -s %{buildroot} + +%files +%license LICENSE +%doc README.md +%{_bindir}/koi +%{_datadir}/applications/koi.desktop +%{_datadir}/icons/hicolor/scalable/apps/{koi.svg,koi_tray.svg} + +%changelog +* Thu Jun 27 2024 Martin Stibor <martin.von.reichenb...@proton.me> +- Koi - 0.3.1 -- Added Click Mouse to Switch + - Click mouse wheel to switch LIGHT/DARK themes + - Updated README; Added Void Linux build dependencies + - Added Koi.spec for FEDORA/SUSE + +- Full Changelog: https://github.com/baduhai/Koi/compare/0.3...0.3.1 + +* Thu Jun 13 2024 Martin Stibor <martin.von.reichenb...@proton.me> +- Koi - 0.3 -- Complete Overhaul + - Update to QT 6 Build Tools / KF 6 libraries + - Updated bundled libraries to their latest changes + - Updated UI; Updated Screenshot + - Updated README with appropriate build instructions and more . . . + +- Full Changelog: https://github.com/baduhai/Koi/compare/0.2.4...0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/development/Fedora/koi.spec new/Koi-0.3.1/development/Fedora/koi.spec --- old/Koi-0.3/development/Fedora/koi.spec 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/development/Fedora/koi.spec 1970-01-01 01:00:00.000000000 +0100 @@ -1,64 +0,0 @@ -Name: Koi -Version: 0.3 -Release: 1%{?dist} -Summary: Scheduling LIGHT/DARK Theme Converter for the KDE Plasma Desktop -License: LGPL-3.0-only -URL: https://github.com/baduhai/%{name} -Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz - -BuildRequires: cmake -BuildRequires: extra-cmake-modules - -BuildRequires: cmake(Qt6Core) -BuildRequires: cmake(Qt6DBus) -BuildRequires: cmake(Qt6Gui) -BuildRequires: cmake(Qt6Network) -BuildRequires: cmake(Qt6Test) -BuildRequires: cmake(Qt6Widgets) -BuildRequires: cmake(Qt6Xml) - -BuildRequires: cmake(KF6Config) -BuildRequires: cmake(KF6ConfigWidgets) -BuildRequires: cmake(KF6CoreAddons) -BuildRequires: cmake(KF6WidgetsAddons) - -BuildRequires: desktop-file-utils -BuildRequires: fdupes -BuildRequires: hicolor-icon-theme - -Requires: plasma-desktop plasma-integration plasma-workspace - -%description -Koi is a program designed to provide the KDE Plasma Desktop functionality to -automatically switch between light and dark themes. - -%prep -%autosetup - -%build -%cmake "src/" -%cmake_build - -%install -%cmake_install - -%check -desktop-file-validate "%{buildroot}/%{_datadir}/applications/koi.desktop" -%fdupes -s %{buildroot} - -%files -%license LICENSE -%doc README.md -%{_bindir}/koi -%{_datadir}/applications/koi.desktop -%{_datadir}/icons/hicolor/scalable/apps/{koi.svg,koi_tray.svg} - -%changelog -* Thu Jun 13 2024 Martin Stibor <martin.von.reichenb...@proton.me> -- Koi - 0.3 -- Complete Overhaul - - Update to QT6 Build Tools / KF6 libraries - - Updated bundled libraries to their latest changes - - Updated UI; Updated Screenshot - - Updated README with appropriate build instructions and more . . . - -- Full Changelog**: https://github.com/baduhai/Koi/compare/0.2.4...0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/development/SUSE/Koi.spec new/Koi-0.3.1/development/SUSE/Koi.spec --- old/Koi-0.3/development/SUSE/Koi.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/Koi-0.3.1/development/SUSE/Koi.spec 2024-06-27 17:04:30.000000000 +0200 @@ -0,0 +1,98 @@ +# +# spec file for package koi +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: koi +Version: 0.3.1 +Release: 0%{?dist} +Summary: Theme scheduling for the KDE Plasma Desktop +License: LGPL-3.0-only +URL: https://github.com/baduhai/Koi +Source0: %{url}/archive/%{version}.tar.gz #%{name}-%{version}.tar.gz + +BuildRequires: cmake(Qt6Core) +BuildRequires: cmake(Qt6DBus) +BuildRequires: cmake(Qt6Gui) +BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6Test) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: cmake(Qt6Xml) + +BuildRequires: cmake(KF6Config) +BuildRequires: cmake(KF6ConfigWidgets) +BuildRequires: cmake(KF6CoreAddons) +BuildRequires: cmake(KF6WidgetsAddons) + +BuildRequires: kf6-extra-cmake-modules + +BuildRequires: desktop-file-utils +BuildRequires: fdupes + +Requires: hicolor-icon-theme +Requires: libplasma6-components +Requires: libplasma6-desktoptheme +Requires: plasma6-desktop +Requires: plasma6-workspace + +%description +Koi is a program designed to provide the KDE Plasma Desktop functionality +to automatically switch between light and dark themes. + +%prep +%autosetup -p1 -n Koi-%{version} + +%build +pushd src +%cmake_kf6 + +%kf6_build +popd + +%install +pushd src +%kf6_install +popd + +%check +desktop-file-validate "%{buildroot}/%{_datadir}/applications/koi.desktop" +%fdupes -s %{buildroot} + + +%files +%license LICENSE +%doc README.md +%{_bindir}/koi +%{_datadir}/applications/koi.desktop +%{_datadir}/icons/hicolor/scalable/apps/{koi.svg,koi_tray.svg} + +%changelog +* Thu Jun 27 2024 Martin Stibor <martin.von.reichenb...@proton.me> +- Koi - 0.3.1 -- Added Click Mouse to Switch + - Click mouse wheel to switch LIGHT/DARK themes + - Updated README; Added Void Linux build dependencies + - Added Koi.spec for FEDORA/SUSE + +- Full Changelog: https://github.com/baduhai/Koi/compare/0.3...0.3.1 + +* Thu Jun 13 2024 Martin Stibor <martin.von.reichenb...@proton.me> +- Koi - 0.3 -- Complete Overhaul + - Update to QT 6 Build Tools / KF 6 libraries + - Updated bundled libraries to their latest changes + - Updated UI; Updated Screenshot + - Updated README with appropriate build instructions and more . . . + +- Full Changelog: https://github.com/baduhai/Koi/compare/0.2.4...0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/CMakeLists.txt new/Koi-0.3.1/src/CMakeLists.txt --- old/Koi-0.3/src/CMakeLists.txt 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/CMakeLists.txt 2024-06-27 17:04:30.000000000 +0200 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16) -project(Koi VERSION 0.3 LANGUAGES CXX) +project(Koi VERSION 0.3.1 LANGUAGES CXX) configure_file(headers/config.h.in config.h) include_directories(${CMAKE_CURRENT_BINARY_DIR}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/headers/utils.h new/Koi-0.3.1/src/headers/utils.h --- old/Koi-0.3/src/headers/utils.h 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/headers/utils.h 2024-06-27 17:04:30.000000000 +0200 @@ -27,6 +27,13 @@ Q_OBJECT public: + enum Mode { + Undefined = 0, + Dark = 1, + Light = 2, + }; + Q_ENUM(Mode) + Utils(); QSettings *settings; @@ -44,6 +51,7 @@ void startupTimeCheck(); void startupSunCheck(); + void toggle(); void goLight(); void goDark(); void goLightStyle(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/mainwindow.cpp new/Koi-0.3.1/src/mainwindow.cpp --- old/Koi-0.3/src/mainwindow.cpp 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/mainwindow.cpp 2024-06-27 17:04:30.000000000 +0200 @@ -78,6 +78,9 @@ //case QSystemTrayIcon::MiddleClick: // Middle-click to toggle between light and dark // utils.notify("Hello!", "You middle-clicked me", 0); // Must implement toggle // break; + case QSystemTrayIcon::MiddleClick: // Middle-click to toggle between light and dark + utils.toggle(); + break; // Must understand tray better - Why can't right click be part of switch statement? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/ui/about.ui new/Koi-0.3.1/src/ui/about.ui --- old/Koi-0.3/src/ui/about.ui 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/ui/about.ui 2024-06-27 17:04:30.000000000 +0200 @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>645</width> - <height>491</height> + <width>647</width> + <height>488</height> </rect> </property> <property name="sizePolicy"> @@ -283,7 +283,8 @@ <p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">(c) 2020-2024, <a href="https://github.com/baduhai"><span style=" text-decoration: underline; color:#2980b9;">William Franco Abdul Hai</span></a></p> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2023-2024, Martin Stibor (<a href="https://github.com/MartinVonReichenberg"><span style=" text-decoration: underline; color:#2980b9;">Martin von reichenberg</span></a>)</p> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2024, <a href="https://github.com/ducvietcao"><span style=" text-decoration: underline; color:#2980b9;">ducvietcao</span></a></p></body></html></string> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2024, <a href="https://github.com/ducvietcao"><span style=" text-decoration: underline; color:#2980b9;">ducvietcao</span></a></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2024, <a href="https://github.com/financelurker"><span style=" text-decoration: underline; color:#2980b9;">financelurker</span></a></p></body></html></string> </property> </widget> </item> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/ui/license.ui new/Koi-0.3.1/src/ui/license.ui --- old/Koi-0.3/src/ui/license.ui 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/ui/license.ui 2024-06-27 17:04:30.000000000 +0200 @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>749</width> - <height>543</height> + <width>757</width> + <height>544</height> </rect> </property> <property name="windowTitle"> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Koi-0.3/src/utils.cpp new/Koi-0.3.1/src/utils.cpp --- old/Koi-0.3/src/utils.cpp 2024-06-13 19:11:30.000000000 +0200 +++ new/Koi-0.3.1/src/utils.cpp 2024-06-27 17:04:30.000000000 +0200 @@ -248,6 +248,16 @@ return kvantumStyles; } // Manage switching themes functions +void Utils::toggle() +{ + QMetaEnum metaEnum = QMetaEnum::fromType<Mode>(); + const auto current = settings->value("current", QVariant::fromValue(Mode::Undefined)).value<Mode>(); + if (current == Mode::Light) { + goDark(); + } else if (current == Mode::Dark) { + goLight(); + } +} void Utils::goLight() { goLightStyle(); @@ -261,6 +271,7 @@ { notify("Switched to light mode!", "Some applications may need to be restarted for applied changes to take effect."); } + settings->setValue("current", QVariant::fromValue(Mode::Light).toString()); } void Utils::goDark() { @@ -275,6 +286,7 @@ { notify("Switched to dark mode!", "Some applications may need to be restarted for applied changes to take effect."); } + settings->setValue("current", QVariant::fromValue(Mode::Dark).toString()); } void Utils::goLightStyle() {