|
| 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 |
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.
| 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.