Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
SurfaceThemeResolve.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorSurface/phosphorsurface_export.h>
7
8#include <QColor>
9#include <QVariantMap>
10
11namespace PhosphorSurfaceShaders {
12
14
26{
27 QColor accent;
28 QColor inactive;
29 QColor background;
30 QColor foreground;
35 QColor windowAccent = {};
36};
37
64PHOSPHORSURFACE_EXPORT void resolveThemeParamColors(const SurfaceShaderEffect& effect, QVariantMap& friendlyParams,
65 const SurfaceThemeColors& theme);
66
67} // namespace PhosphorSurfaceShaders
Definition DecorationProfile.h:31
PHOSPHORSURFACE_EXPORT void resolveThemeParamColors(const SurfaceShaderEffect &effect, QVariantMap &friendlyParams, const SurfaceThemeColors &theme)
Synthesise theme-derived colours into a pack's friendly param map, in place, honouring the host-consu...
Metadata for a single surface shader effect.
Definition SurfaceShaderEffect.h:81
Theme colours a host supplies to resolveThemeParamColors().
Definition SurfaceThemeResolve.h:26
QColor accent
System accent / highlight (useSystemAccent active border).
Definition SurfaceThemeResolve.h:27
QColor inactive
Unfocused accent (useSystemAccent inactive border).
Definition SurfaceThemeResolve.h:28
QColor foreground
Theme window foreground (useThemeNeutral lerp target).
Definition SurfaceThemeResolve.h:30
QColor windowAccent
Optional per-window identity colour (useWindowAccent); invalid when the host has no identity for the ...
Definition SurfaceThemeResolve.h:35
QColor background
Theme window background (useThemeNeutral lerp base, useThemeTint halo).
Definition SurfaceThemeResolve.h:29