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

Library-owned default values for zone presentation. More...

Variables

constexpr int HighlightAlpha = 128
constexpr int InactiveAlpha = 64
constexpr int BorderAlpha = 200
constexpr int OpaqueAlpha = 255
const QColor HighlightColor {0, 120, 212, HighlightAlpha}
 Windows blue.
const QColor InactiveColor {128, 128, 128, InactiveAlpha}
const QColor BorderColor {255, 255, 255, BorderAlpha}
const QColor LabelFontColor {255, 255, 255, OpaqueAlpha}
constexpr qreal Opacity = 0.5
constexpr qreal InactiveOpacity = 0.3
constexpr int BorderWidth = 2
constexpr int BorderRadius = 8
constexpr int BorderWidthMax = 10
 Ceilings for the zone-overlay border, in logical px.
constexpr int BorderRadiusMax = 50
constexpr int AdjacentThreshold = 20
 Pixel distance considered "adjacent" for multi-zone span detection.
constexpr qreal PriorityGridMainRatio = 0.667
constexpr qreal PriorityGridSecondaryRatio = 0.333
constexpr qreal FocusSideRatio = 0.2
constexpr qreal FocusMainRatio = 0.6

Detailed Description

Library-owned default values for zone presentation.

These are the canonical defaults the zone primitives fall back to when a value isn't explicitly persisted (e.g. an old layout file missing a border-width key, a freshly constructed Zone with no overrides). The application's config layer delegates its user-facing zone-default accessors downward to these, so there is a single source of truth — same pattern as PhosphorTiles::AutotileDefaults.

Variable Documentation

◆ AdjacentThreshold

int PhosphorZones::ZoneDefaults::AdjacentThreshold = 20
constexpr

Pixel distance considered "adjacent" for multi-zone span detection.

◆ BorderAlpha

int PhosphorZones::ZoneDefaults::BorderAlpha = 200
constexpr

◆ BorderColor

const QColor PhosphorZones::ZoneDefaults::BorderColor {255, 255, 255, BorderAlpha}
inline

◆ BorderRadius

int PhosphorZones::ZoneDefaults::BorderRadius = 8
constexpr

◆ BorderRadiusMax

int PhosphorZones::ZoneDefaults::BorderRadiusMax = 50
constexpr

◆ BorderWidth

int PhosphorZones::ZoneDefaults::BorderWidth = 2
constexpr

◆ BorderWidthMax

int PhosphorZones::ZoneDefaults::BorderWidthMax = 10
constexpr

Ceilings for the zone-overlay border, in logical px.

These are the OVERLAY bounds, deliberately distinct from the window-decoration ones in PhosphorCompositor::DecorationDefaults (width 20, radius 50): the overlay border is drawn on a transient highlight, not on a real window, and its width stays narrower. Every surface that offers the value reads these — ConfigDefaults::borderWidthMax()/borderRadiusMax() (and through them the settings schema clamp and the settings slider), the Zone setters, and the layout editor's per-zone spin boxes. The rule-side validator mirrors them as kMaxOverlayBorderWidth / kMaxOverlayBorderRadius, which phosphor-rules cannot reach from here because it does not link phosphor-zones.

◆ FocusMainRatio

qreal PhosphorZones::ZoneDefaults::FocusMainRatio = 0.6
constexpr

◆ FocusSideRatio

qreal PhosphorZones::ZoneDefaults::FocusSideRatio = 0.2
constexpr

◆ HighlightAlpha

int PhosphorZones::ZoneDefaults::HighlightAlpha = 128
constexpr

◆ HighlightColor

const QColor PhosphorZones::ZoneDefaults::HighlightColor {0, 120, 212, HighlightAlpha}
inline

Windows blue.

◆ InactiveAlpha

int PhosphorZones::ZoneDefaults::InactiveAlpha = 64
constexpr

◆ InactiveColor

const QColor PhosphorZones::ZoneDefaults::InactiveColor {128, 128, 128, InactiveAlpha}
inline

◆ InactiveOpacity

qreal PhosphorZones::ZoneDefaults::InactiveOpacity = 0.3
constexpr

◆ LabelFontColor

const QColor PhosphorZones::ZoneDefaults::LabelFontColor {255, 255, 255, OpaqueAlpha}
inline

◆ Opacity

qreal PhosphorZones::ZoneDefaults::Opacity = 0.5
constexpr

◆ OpaqueAlpha

int PhosphorZones::ZoneDefaults::OpaqueAlpha = 255
constexpr

◆ PriorityGridMainRatio

qreal PhosphorZones::ZoneDefaults::PriorityGridMainRatio = 0.667
constexpr

◆ PriorityGridSecondaryRatio

qreal PhosphorZones::ZoneDefaults::PriorityGridSecondaryRatio = 0.333
constexpr