Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorSurfaceShaders::SurfaceThemeColors Struct Reference

Theme colours a host supplies to resolveThemeParamColors(). More...

#include <PhosphorSurface/SurfaceThemeResolve.h>

Public Attributes

QColor accent
 System accent / highlight (useSystemAccent active border).
QColor inactive
 Unfocused accent (useSystemAccent inactive border).
QColor background
 Theme window background (useThemeNeutral lerp base, useThemeTint halo).
QColor foreground
 Theme window foreground (useThemeNeutral lerp target).
QColor windowAccent = {}
 Optional per-window identity colour (useWindowAccent); invalid when the host has no identity for the surface.

Detailed Description

Theme colours a host supplies to resolveThemeParamColors().

Every host that composes a decoration chain (the daemon's overlay decorations, the KWin window decorations, the shell's chrome and the settings preview) resolves these from its own colour source and passes them in, so the flag→colour synthesis stays identical across them. The KWin host, for one, takes accent and inactive from the daemon's border colours and background and foreground from its own palette.

Member Data Documentation

◆ accent

QColor PhosphorSurfaceShaders::SurfaceThemeColors::accent

System accent / highlight (useSystemAccent active border).

◆ background

QColor PhosphorSurfaceShaders::SurfaceThemeColors::background

Theme window background (useThemeNeutral lerp base, useThemeTint halo).

◆ foreground

QColor PhosphorSurfaceShaders::SurfaceThemeColors::foreground

Theme window foreground (useThemeNeutral lerp target).

◆ inactive

QColor PhosphorSurfaceShaders::SurfaceThemeColors::inactive

Unfocused accent (useSystemAccent inactive border).

◆ windowAccent

QColor PhosphorSurfaceShaders::SurfaceThemeColors::windowAccent = {}

Optional per-window identity colour (useWindowAccent); invalid when the host has no identity for the surface.

Only its RGB is used. The default member initializer keeps the hosts' four-colour aggregate initialisers free of -Wmissing-field-initializers.


The documentation for this struct was generated from the following file: