Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorCompositor::DecorationDefaults Namespace Reference

Single source of truth for window-decoration appearance defaults. More...

Variables

constexpr bool HideTitleBars = false
constexpr bool ShowBorder = false
constexpr int BorderWidth = 2
constexpr int BorderWidthMin = 0
constexpr int BorderWidthMax = 20
constexpr int BorderRadius = 8
constexpr int BorderRadiusMin = 0
constexpr int BorderRadiusMax = 50
constexpr int FocusFadeMs = 160
constexpr int FocusFadeMsMin = 0
constexpr int FocusFadeMsMax = 1000
constexpr qreal BlurScaleMultiplier = 1.0
constexpr qreal BlurScaleMultiplierMin = 0.25
constexpr qreal BlurScaleMultiplierMax = 2.0
constexpr QLatin1StringView FallbackAccentHex {"#ff3daee9"}
constexpr QLatin1StringView FallbackInactiveHex {"#ff5c6370"}

Detailed Description

Single source of truth for window-decoration appearance defaults.

Consumed by BOTH sides of the D-Bus boundary: the daemon's ConfigDefaults (persisted setting defaults) and the effect's WindowAppearanceDefault (effect_state.h), which seeds the pre-settings-load rendering state. Sharing the symbols keeps the two from drifting — the effect renders with the same values the daemon would persist until the async settings load lands, which is what the width/radius loaders' "keep the seed on an empty reply" guards depend on.

These are WINDOW decoration constants (tiled/snapped window borders and title bars), not the zone-overlay border constants in ZoneDefaults.

Variable Documentation

◆ BlurScaleMultiplier

qreal PhosphorCompositor::DecorationDefaults::BlurScaleMultiplier = 1.0
inlineconstexpr

◆ BlurScaleMultiplierMax

qreal PhosphorCompositor::DecorationDefaults::BlurScaleMultiplierMax = 2.0
inlineconstexpr

◆ BlurScaleMultiplierMin

qreal PhosphorCompositor::DecorationDefaults::BlurScaleMultiplierMin = 0.25
inlineconstexpr

◆ BorderRadius

int PhosphorCompositor::DecorationDefaults::BorderRadius = 8
inlineconstexpr

◆ BorderRadiusMax

int PhosphorCompositor::DecorationDefaults::BorderRadiusMax = 50
inlineconstexpr

◆ BorderRadiusMin

int PhosphorCompositor::DecorationDefaults::BorderRadiusMin = 0
inlineconstexpr

◆ BorderWidth

int PhosphorCompositor::DecorationDefaults::BorderWidth = 2
inlineconstexpr

◆ BorderWidthMax

int PhosphorCompositor::DecorationDefaults::BorderWidthMax = 20
inlineconstexpr

◆ BorderWidthMin

int PhosphorCompositor::DecorationDefaults::BorderWidthMin = 0
inlineconstexpr

◆ FallbackAccentHex

QLatin1StringView PhosphorCompositor::DecorationDefaults::FallbackAccentHex {"#ff3daee9"}
inlineconstexpr

◆ FallbackInactiveHex

QLatin1StringView PhosphorCompositor::DecorationDefaults::FallbackInactiveHex {"#ff5c6370"}
inlineconstexpr

◆ FocusFadeMs

int PhosphorCompositor::DecorationDefaults::FocusFadeMs = 160
inlineconstexpr

◆ FocusFadeMsMax

int PhosphorCompositor::DecorationDefaults::FocusFadeMsMax = 1000
inlineconstexpr

◆ FocusFadeMsMin

int PhosphorCompositor::DecorationDefaults::FocusFadeMsMin = 0
inlineconstexpr

◆ HideTitleBars

bool PhosphorCompositor::DecorationDefaults::HideTitleBars = false
inlineconstexpr

◆ ShowBorder

bool PhosphorCompositor::DecorationDefaults::ShowBorder = false
inlineconstexpr