Skip to content

Commit 8375980

Browse files
Added Click Mouse Wheel to Switch LIGHT/DARK Themes; Update to the new stable version - 0.3.1
1 parent 195adac commit 8375980

File tree

7 files changed

+182
-32
lines changed

7 files changed

+182
-32
lines changed

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ Koi is a program designed to provide the KDE Plasma Desktop functionality to aut
1010

1111
## Features
1212

13-
- Toggle between light and dark presets based on time.
14-
- Change Plasma style.
15-
- Change Qt colour scheme.
16-
- Change Icon theme.
17-
- Change GTK theme.
18-
- Change wallpaper.
19-
- Hide application to system tray.
13+
- Toggle between light and dark presets based on time
14+
- Change Plasma style
15+
- Change Qt colour scheme
16+
- Change Icon theme
17+
- Change GTK theme
18+
- Change wallpaper
19+
- Hide application to system tray
20+
- Toggle between LIGHT/DARK themes by clicking mouse wheel
2021

2122
___
2223

@@ -37,17 +38,18 @@ In order to have Koi started at login, you can do so with the *KDE Plasma System
3738

3839
Search for: ***Autostart***
3940

40-
**Plasma** version **5** navigate to ***System Settings*** -> ***Startup and Shutdown*** -> ***Autostart***;
41+
**Plasma** version **5** navigate to ***System Settings*** -> ***Startup and Shutdown*** -> ***Autostart***; and select "`+ Add...` -> `+ Add Application` -> `Utilities` -> `Koi`"
4142

42-
**Plasma** version **6** navigate to ***System Settings*** -> ***System*** -> ***Autostart***, and select "`+ Add...`"
43+
44+
**Plasma** version **6** navigate to ***System Settings*** -> ***System*** -> ***Autostart***, and select "`+ Add...` -> `+ Add Application` -> `Utilities` -> `Koi`"
4345

4446
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.
4547

4648
___
4749

4850
## Get Koi
4951

50-
*Latest version: 0.3*
52+
*Latest version: 0.3.1*
5153

5254
### Building from SOURCE
5355

@@ -152,19 +154,19 @@ ___
152154

153155
- ``` 'kde-plasma-desktop' 'plasma-desktop' ```
154156

155-
### *NixOS - [[NUR]](https://nur.nix-community.org/repos/baduhai/)*
156-
157-
- *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.*
158-
159157
### Void Linux
160158

161159
**Build Dependencies:**
162160

163-
- ``` 'gcc' 'cmake' 'extra-cmake-modules' 'qt6-base' 'qt6-base-devel' 'kf6-kcoreaddons-devel' 'kf6-kconfig-devel' 'kf6-kwidgetsaddons-devel' ```
161+
- ``` 'gcc' 'cmake' 'extra-cmake-modules' 'qt6-base-devel' 'kf6-kcoreaddons-devel' 'kf6-kconfig-devel' 'kf6-kwidgetsaddons-devel' ```
164162

165163
**Run Dependencies:**
166164

167-
- ``` 'plasma-desktop' 'plasma-integration' ```
165+
- ``` 'plasma-desktop' 'plasma-integration' 'qt6-base' ```
166+
167+
### *NixOS - [[NUR]](https://nur.nix-community.org/repos/baduhai/)*
168+
169+
- *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.*
168170

169171
___
170172

@@ -173,9 +175,12 @@ ___
173175
* William Franco Abdul Hai [(baduhai)](https://github.com/baduhai)
174176
* Martin Stibor [(Martin von Reichenberg)](https://github.com/MartinVonReichenberg)
175177
* [ducvietcao](https://github.com/ducvietcao)
178+
* [financelurker](https://github.com/financelurker)
179+
* [ari melody](https://github.com/arimelody)
176180
* [toboil-features](https://github.com/toboil-features)
177181

178182

183+
179184
## References
180185

181186
The following is a list of resources that was used as reference and inspiration for writing Koi.

development/Arch Linux/PKGBUILD

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Author: William Franco Abdul Hai <williamhai@hotmail.com>
2+
# Contributor: Martin Stibor <martin.von.reichenberg@protonmail.com>
3+
# Maintainer: Martin Stibor <martin.von.reichenberg@protonmail.com>
4+
5+
pkgname='koi'
6+
_pkgname='Koi'
7+
pkgver=0.3.1
8+
pkgrel=1
9+
pkgdesc="Scheduled LIGHT/DARK Theme Switching for the KDE Plasma Desktop"
10+
arch=('x86_64' 'aarch64')
11+
url="https://github.com/baduhai/Koi"
12+
license=('LGPL3')
13+
depends=('gcc-libs' 'plasma-desktop' 'plasma-integration' 'plasma-workspace' 'qt6-svg' 'hicolor-icon-theme')
14+
makedepends=('gcc' 'qt6-base' 'qt6-tools' 'cmake' 'extra-cmake-modules' 'desktop-file-utils' 'fdupes')
15+
optdepends=('xsettingsd: Apply settings to GTK applications on the fly'
16+
'kvantum: Powerful extra customisable themes')
17+
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
18+
sha256sums=('SKIP')
19+
20+
build() {
21+
cmake -S "${srcdir}/${_pkgname}-${pkgver}/src/" \
22+
-B "${srcdir}/${_pkgname}-${pkgver}/src/build/" \
23+
-DCMAKE_INSTALL_PREFIX="/usr/"
24+
25+
make -C "${srcdir}/${_pkgname}-${pkgver}/src/build/"
26+
}
27+
28+
check() {
29+
desktop-file-validate "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop"
30+
fdupes -r -s "${srcdir}/"
31+
}
32+
33+
package() {
34+
make -C "${srcdir}/${_pkgname}-${pkgver}/src/build/" DESTDIR="${pkgdir}" install
35+
36+
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/src/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
37+
38+
desktop-file-validate "${pkgdir}/usr/share/applications/${pkgname}.desktop"
39+
fdupes -r -s "${pkgdir}/"
40+
}

development/Fedora/Koi.spec

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
Name: Koi
2-
Version: 0.3
2+
Version: 0.3.1
33
Release: 1%{?dist}
44
Summary: Scheduling LIGHT/DARK Theme Converter for the KDE Plasma Desktop
55
License: LGPL-3.0-only
66
URL: https://github.com/baduhai/%{name}
7-
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
8-
9-
BuildRequires: cmake
10-
BuildRequires: extra-cmake-modules
7+
Source0: %{url}/archive/%{version}/%{version}.tar.gz #Koi-%{version}.tar.gz
118

129
BuildRequires: cmake(Qt6Core)
1310
BuildRequires: cmake(Qt6DBus)
@@ -22,18 +19,19 @@ BuildRequires: cmake(KF6ConfigWidgets)
2219
BuildRequires: cmake(KF6CoreAddons)
2320
BuildRequires: cmake(KF6WidgetsAddons)
2421

22+
BuildRequires: extra-cmake-modules
23+
2524
BuildRequires: desktop-file-utils
2625
BuildRequires: fdupes
27-
BuildRequires: hicolor-icon-theme
2826

29-
Requires: plasma-desktop plasma-integration plasma-workspace
27+
Requires: plasma-desktop plasma-integration plasma-workspace hicolor-icon-theme
3028

3129
%description
3230
Koi is a program designed to provide the KDE Plasma Desktop functionality to
3331
automatically switch between light and dark themes.
3432

3533
%prep
36-
%autosetup
34+
%autosetup -p1 -n Koi-%{version}
3735

3836
%build
3937
%cmake "src/"
@@ -54,11 +52,19 @@ desktop-file-validate "%{buildroot}/%{_datadir}/applications/koi.desktop"
5452
%{_datadir}/icons/hicolor/scalable/apps/{koi.svg,koi_tray.svg}
5553

5654
%changelog
55+
* Thu Jun 27 2024 Martin Stibor <martin.von.reichenberg@proton.me>
56+
- Koi - 0.3.1 -- Added Click Mouse to Switch
57+
- Click mouse wheel to switch LIGHT/DARK themes
58+
- Updated README; Added Void Linux build dependencies
59+
- Added Koi.spec for FEDORA/SUSE
60+
61+
- Full Changelog: https://github.com/baduhai/Koi/compare/0.3...0.3.1
62+
5763
* Thu Jun 13 2024 Martin Stibor <martin.von.reichenberg@proton.me>
5864
- Koi - 0.3 -- Complete Overhaul
59-
- Update to QT6 Build Tools / KF6 libraries
65+
- Update to QT 6 Build Tools / KF 6 libraries
6066
- Updated bundled libraries to their latest changes
6167
- Updated UI; Updated Screenshot
6268
- Updated README with appropriate build instructions and more . . .
6369

64-
- Full Changelog**: https://github.com/baduhai/Koi/compare/0.2.4...0.3
70+
- Full Changelog: https://github.com/baduhai/Koi/compare/0.2.4...0.3

development/SUSE/Koi.spec

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
#
2+
# spec file for package koi
3+
#
4+
# Copyright (c) 2024 SUSE LLC
5+
#
6+
# All modifications and additions to the file contributed by third parties
7+
# remain the property of their copyright owners, unless otherwise agreed
8+
# upon. The license for this file, and modifications and additions to the
9+
# file, is the same license as for the pristine package itself (unless the
10+
# license for the pristine package is not an Open Source License, in which
11+
# case the license is the MIT License). An "Open Source License" is a
12+
# license that conforms to the Open Source Definition (Version 1.9)
13+
# published by the Open Source Initiative.
14+
15+
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16+
#
17+
18+
19+
Name: koi
20+
Version: 0.3.1
21+
Release: 0%{?dist}
22+
Summary: Theme scheduling for the KDE Plasma Desktop
23+
License: LGPL-3.0-only
24+
URL: https://github.com/baduhai/Koi
25+
Source0: %{url}/archive/%{version}.tar.gz #%{name}-%{version}.tar.gz
26+
27+
BuildRequires: cmake(Qt6Core)
28+
BuildRequires: cmake(Qt6DBus)
29+
BuildRequires: cmake(Qt6Gui)
30+
BuildRequires: cmake(Qt6Network)
31+
BuildRequires: cmake(Qt6Test)
32+
BuildRequires: cmake(Qt6Widgets)
33+
BuildRequires: cmake(Qt6Xml)
34+
35+
BuildRequires: cmake(KF6Config)
36+
BuildRequires: cmake(KF6ConfigWidgets)
37+
BuildRequires: cmake(KF6CoreAddons)
38+
BuildRequires: cmake(KF6WidgetsAddons)
39+
40+
BuildRequires: kf6-extra-cmake-modules
41+
42+
BuildRequires: desktop-file-utils
43+
BuildRequires: fdupes
44+
45+
Requires: hicolor-icon-theme
46+
Requires: libplasma6-components
47+
Requires: libplasma6-desktoptheme
48+
Requires: plasma6-desktop
49+
Requires: plasma6-workspace
50+
51+
%description
52+
Koi is a program designed to provide the KDE Plasma Desktop functionality
53+
to automatically switch between light and dark themes.
54+
55+
%prep
56+
%autosetup -p1 -n Koi-%{version}
57+
58+
%build
59+
pushd src
60+
%cmake_kf6
61+
62+
%kf6_build
63+
popd
64+
65+
%install
66+
pushd src
67+
%kf6_install
68+
popd
69+
70+
%check
71+
desktop-file-validate "%{buildroot}/%{_datadir}/applications/koi.desktop"
72+
%fdupes -s %{buildroot}
73+
74+
75+
%files
76+
%license LICENSE
77+
%doc README.md
78+
%{_bindir}/koi
79+
%{_datadir}/applications/koi.desktop
80+
%{_datadir}/icons/hicolor/scalable/apps/{koi.svg,koi_tray.svg}
81+
82+
%changelog
83+
* Thu Jun 27 2024 Martin Stibor <martin.von.reichenberg@proton.me>
84+
- Koi - 0.3.1 -- Added Click Mouse to Switch
85+
- Click mouse wheel to switch LIGHT/DARK themes
86+
- Updated README; Added Void Linux build dependencies
87+
- Added Koi.spec for FEDORA/SUSE
88+
89+
- Full Changelog: https://github.com/baduhai/Koi/compare/0.3...0.3.1
90+
91+
* Thu Jun 13 2024 Martin Stibor <martin.von.reichenberg@proton.me>
92+
- Koi - 0.3 -- Complete Overhaul
93+
- Update to QT 6 Build Tools / KF 6 libraries
94+
- Updated bundled libraries to their latest changes
95+
- Updated UI; Updated Screenshot
96+
- Updated README with appropriate build instructions and more . . .
97+
98+
- Full Changelog: https://github.com/baduhai/Koi/compare/0.2.4...0.3

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.16)
2-
project(Koi VERSION 0.3 LANGUAGES CXX)
2+
project(Koi VERSION 0.3.1 LANGUAGES CXX)
33

44
configure_file(headers/config.h.in config.h)
55
include_directories(${CMAKE_CURRENT_BINARY_DIR})

src/ui/about.ui

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>645</width>
10-
<height>491</height>
9+
<width>647</width>
10+
<height>488</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -283,7 +283,8 @@ li.checked::marker { content: &quot;\2612&quot;; }
283283
&lt;p align=&quot;center&quot; style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
284284
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;(c) 2020-2024, &lt;a href=&quot;https://github.com/baduhai&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;William Franco Abdul Hai&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
285285
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;2023-2024, Martin Stibor (&lt;a href=&quot;https://github.com/MartinVonReichenberg&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;Martin von reichenberg&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
286-
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;2024, &lt;a href=&quot;https://github.com/ducvietcao&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;ducvietcao&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
286+
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;2024, &lt;a href=&quot;https://github.com/ducvietcao&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;ducvietcao&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
287+
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;2024, &lt;a href=&quot;https://github.com/financelurker&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;financelurker&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
287288
</property>
288289
</widget>
289290
</item>

src/ui/license.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>749</width>
10-
<height>543</height>
9+
<width>757</width>
10+
<height>544</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">

0 commit comments

Comments
 (0)