Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
ShellPalette.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3#pragma once
4#include <PhosphorTheme/phosphortheme_export.h>
5#include <QColor>
6#include <QList>
7#include <QVariantMap>
8
9namespace PhosphorTheme {
10// Shared by QML surfaces and the native window decoration.
11struct PHOSPHORTHEME_EXPORT ShellPalette
12{
13 QColor surface;
14 QColor card;
15 QColor recess;
16 QColor text;
17 QColor muted;
18 QColor outline;
19 QList<QColor> stops;
20 qreal opacity = 1;
21 static ShellPalette fromSettings(const QVariantMap& settings);
22 QVariantMap toVariant() const;
23 QColor windowColor(int index) const;
24};
25}
Definition AppearanceLibrary.h:10
Definition ShellPalette.h:12
QColor surface
Definition ShellPalette.h:13
QVariantMap toVariant() const
QColor muted
Definition ShellPalette.h:17
QColor windowColor(int index) const
QList< QColor > stops
Definition ShellPalette.h:19
QColor text
Definition ShellPalette.h:16
QColor recess
Definition ShellPalette.h:15
static ShellPalette fromSettings(const QVariantMap &settings)
QColor outline
Definition ShellPalette.h:18
qreal opacity
Definition ShellPalette.h:20
QColor card
Definition ShellPalette.h:14