%global _basename oxygen-adaptive %global debug_package nil %global gitdate 20250206 %global gitcommit_full c7a6c476caf976364f5d4c9691ada6e01cb80cd0 %global gitcommit %%(c=%%{gitcommit_full}; echo ${c:0:7}) Name: %{_basename}-gtk Version: 0^%{gitdate}.%{gitcommit} Release: 1.1%{?dist} Summary: Skeuomorphic GTK theme that follows KDE Plasma color scheme License: GPL-3.0-or-later URL: https://git.disroot.org/eudaimon/%{_basename} Source: %{url}/archive/%{gitcommit_full}.zip BuildArch: noarch Requires: (%{_basename}-gtk2 if gtk2) Requires: (%{_basename}-gtk3 if gtk3) Requires: (%{_basename}-gtk4 if gtk4) Requires: (%{_basename}-xfwm4 if xfwm4) %description This is a skeuomorphic GTK theme that follows your KDE Plasma color scheme, the same way that Breeze GTK theme adapts to it. So if you want to change its colors, you only need to change KDE Plasma's color scheme, nothing else. Do you want to keep using your venerable Oxygen or QtCurve widgets with Plasma, with any color scheme but can't find an appropriate GTK theme that matches it? Seek no more! This theme is a modification of my Pho-Earth-by-night, changing color names to match breeze's and some other improvements. At the same time, it is based on the wonderful pho series by GUILMOUR, such as Pho-Myrtus here. It has currently departed very far away from that theme. This Oxygen Adaptive includes some predefined color schemes (that will work for GTK3 and 4, and are independent from Plasma themes). They're in the color_themes directory. By default, bright Pho Earth theme is enabled. To enable another theme, go to the directory where the theme is installed (typically: ~/.themes or ~/.local/share/themes) and execute the script change_theme.sh. This script will tell you which themes are available and let you chose one. This means that you can change this theme's colors regardless of current Plasma scheme (if there is one). By default, this theme will not try to follow current Plasma color scheme. I had to do this so I could make Plasma theme work both for GTK3 and GTK4. To force this theme to honor current Plasma color scheme, you have to execute the script toggle_plasma.sh, following previous instructions too. You can also create new themes, it's quite easy: just copy one theme's file to another name and edit it: you just need to know how to define colors in RGB hexadecimal values, but any online color picker will help you with that. Sadly, GTK2 can't follow plasma KDE color scheme because the trick used by Plasma KDE for GTK3 is with the file ~/.config/colors.css, but this only affects GTK3 theme, not GTK2 or GTK4. Currently GTK2 uses Pho-Earth-by-night's GTK2 fixed colors. GTK4 version is still under construction. It will probably look good enough most times, but there are things to be fixed (still a lot of warnings and errors, for example). Please comment if there's anything to be fixed other than said errors and warnings. I'm still learning about it by myself, by trial and error (is there any documentation that explains most if not all the changes from GTK3? Please tell me in the comments, too). Unfortunately, it seems the trick to make GTK3 use KDE Plasma's colors does not work for GTK4. The only thing I've done so far is the following: I've addedd a theme_colors.css link at the root of the theme and both GTK3 and GTK4 themes read this file to use its colors. This link points to a CSS with a color theme in the color_themes folder. It's a simple file, very easy and clear to edit (you just need how to define colors in RGB hexadecimal values, but any online color picker will help you with that). GTK3 will still adapt to KDE Plasma color scheme. Currently there are two themes, and you can chose which theme to you want to be active by running the script change_theme.sh. You can add more themes, and the script will help you with chosing (or you can manually remove old link and create the new one, too) The first 3 previews show current style. Other previews show an older style, but I've kept them so you can see how this adaptation to Plasma's color schemes works. There is a matching xfwm4 theme too, which will adapt to current colors. Enjoy! (some keywords to help finding this theme: non-flat, 3D, 3-D, adaptive, adapts, multiple colors, multicolor, shadows, highlights) %files %{_datadir}/themes/%{_basename} %exclude %{_datadir}/themes/%{_basename}/gtk-2.0 %exclude %{_datadir}/themes/%{_basename}/gtk-3.0 %exclude %{_datadir}/themes/%{_basename}/gtk-4.0 %exclude %{_datadir}/themes/%{_basename}/xfwm* #------------------------------------------------------------------ %package -n oxygen-adaptive-gtk2 Summary: Skeuomorphic GTK2 theme that follows KDE Plasma color scheme Requires: gtk2 Requires: gtk2-engines Requires: gtk-murrine-engine %description -n oxygen-adaptive-gtk2 This is a skeuomorphic GTK2 theme that follows your KDE Plasma color scheme, the same way that Breeze GTK theme adapts to it. So if you want to change its colors, you only need to change KDE Plasma's color scheme, nothing else. %files -n oxygen-adaptive-gtk2 %{_datadir}/themes/%{_basename}/gtk-2.0 #------------------------------------------------------------------ %package -n oxygen-adaptive-gtk3 Summary: Skeuomorphic GTK3 theme that follows KDE Plasma color scheme Requires: gtk3 %description -n oxygen-adaptive-gtk3 This is a skeuomorphic GTK3 theme that follows your KDE Plasma color scheme, the same way that Breeze GTK theme adapts to it. So if you want to change its colors, you only need to change KDE Plasma's color scheme, nothing else. %files -n oxygen-adaptive-gtk3 %{_datadir}/themes/%{_basename}/gtk-3.0 #------------------------------------------------------------------ %package -n oxygen-adaptive-gtk4 Summary: Skeuomorphic GTK4 theme that follows KDE Plasma color scheme Requires: gtk4 %description -n oxygen-adaptive-gtk4 This is a skeuomorphic GTK4 theme that follows your KDE Plasma color scheme, the same way that Breeze GTK theme adapts to it. So if you want to change its colors, you only need to change KDE Plasma's color scheme, nothing else. %files -n oxygen-adaptive-gtk4 %{_datadir}/themes/%{_basename}/gtk-4.0 #------------------------------------------------------------------ %package -n oxygen-adaptive-xfwm4 Summary: Skeuomorphic Xfwm4 theme that follows KDE Plasma color scheme %description -n oxygen-adaptive-xfwm4 This is a skeuomorphic GTK theme that follows your KDE Plasma color scheme. There is a matching xfwm4 theme too, which will adapt to current colors. %files -n oxygen-adaptive-xfwm4 %{_datadir}/themes/%{_basename}/xfwm* #------------------------------------------------------------------ %prep %autosetup -p1 -n %{_basename} %install mkdir -p %{buildroot}%{_datadir}/themes/%{_basename}/ cp -r * %{buildroot}%{_datadir}/themes/%{_basename}/ #------------------------------------------------------------------ %changelog * Fri Oct 10 2025 Hazel Bunny 0-0 - Initial Package.