10110111 / k4oxygen

A standalone variant of Oxygen theme for Qt 4,5,6, intended to look mostly like Oxygen@KDE4
GNU Lesser General Public License v2.1
4 stars 1 forks source link

Introduction

K4Oxygen is a variant of KDE4 Oxygen widget theme, released from KDE dependencies and supported both for Qt4, Qt5, and Qt6.

It is based on oxygen-transparent for KDE4 (as of commit aa154d4), but currently has some limitations:

The theme does read Oxygen and global KDE settings similarly to how oxygen-gtk does it.

Installation

You can install it using the following commands

mkdir build
cd build
cmake .. -DQT_VERSION=5
make
sudo make install

Similarly, for Qt4 or Qt6 version replace -DQT_VERSION=5 with -DQT_VERSION=4 or -DQT_VERSION=6, respectively.

Configuration

Making K4Oxygen current Qt theme

Style settings

In a KDE session K4Oxygen should pick the Oxygen and global KDE settings automatically with no user intervention.

In a non-KDE session you can set non-default settings by editing oxygenrc and kdeglobals files. These files are searched as follows:

  1. If kde4-config --path config works, its output paths are used
  2. Otherwise, the path is set to $HOME/.config/k4oxygen (or $XDG_CONFIG_HOME/k4oxygen, if XDG_CONFIG_HOME is set).

If you've edited oxygenrc or kdeglobals, you can force configuration reloading using these commands (TypeOfChange is a parameter):

dbus-send --type=signal /KGlobalSettings org.kde.KGlobalSettings.notifyChange int32:TypeOfChange int32:0  # for kdeglobals
dbus-send --type=signal /OxygenStyle org.kde.Oxygen.Style.reparseConfiguration # for oxygenrc

Here TypeOfChange for kdeglobals is one of the following (the ones supported):

These commands simulate the signals sent by KDE's System Settings utility.