# Qt Theme Integration

By default, SUN uses the Qt palette for dialog colors. On KDE this works
automatically. On GTK-based desktops (XFCE, Openbox, LXDE, etc.) Qt apps
do not follow the GTK theme unless configured explicitly.

## Option 1: qt5-styleplugins (recommended for XFCE)

Install `qt5-styleplugins` from [SlackBuilds.org](https://slackbuilds.org).

Then set the following environment variable permanently:

```bash
# ~/.zprofile  (recommended — applied before XDG autostart)
export QT_QPA_PLATFORMTHEME=gtk2
```

Use `~/.zprofile` (or `~/.bash_profile`) rather than `~/.zshrc` so the
variable is available to SUN when it starts via XDG autostart at login,
before any terminal is opened.

To verify it is active:

```bash
echo $QT_QPA_PLATFORMTHEME
# should print: gtk2
```

## Option 2: qt5ct

Install `qt5ct` from SlackBuilds.org and set:

```bash
export QT_QPA_PLATFORMTHEME=qt5ct
```

Then run `qt5ct` to choose a style and color palette manually.
This option does not require GTK and works on any desktop.

## No configuration

If neither option is set, SUN still works correctly. Dialogs use the
default Qt color palette (light grey/white), which may not match your
desktop theme but is always readable.
