import QtQuick QtObject { // Smoky black glass with a soft gold accent. readonly property color barBg: "#a60a0a0c" readonly property color textColor: "#f7f3ea" readonly property color labelColor: "#bdb39a" readonly property color fieldBg: "#66000000" readonly property color cardBg: "#8c0d0d10" // Selection, the focused field and other things that should stand out. readonly property color accentColor: "#d8b85a" // Text drawn on top of the accent color. readonly property color accentText: "#0a0a0c" // Something went wrong or found nothing, like "no match". readonly property color warnColor: "#ff8a5c" // ── glass ─────────────────────────────────────────────────────────── // Bars and cards are see-through glass. A rim catches the light along // the top and fades toward the bottom, a soft shine lies over the top // half, and a shadow sits underneath. readonly property color glassRimTop: "#80fff1c4" readonly property color glassRimBottom: "#14ffffff" readonly property color glassShine: "#1fffffff" // Selected glass: a warm tint, a gold rim and a gold glow. readonly property color glassSelectedTint: "#4d2e2814" readonly property color glassSelectedRimBottom: "#66d8b85a" readonly property color glassGlow: "#66d8b85a" readonly property color glassShadow: "#80000000" readonly property real glassShadowBlur: 24 readonly property real glassGlowBlur: 32 readonly property real glassShadowOffset: 8 // Selected glass fades in and out this fast. readonly property int glassFadeDuration: 160 // The "current" badge on a workspace card. readonly property real pillFontSize: 13 readonly property real pillPadding: 8 readonly property real cornerRadius: 12 readonly property real barHeight: 84 readonly property real barWidth: 800 // Space between the bar edge and the boxes inside it. readonly property real barPadding: 18 readonly property real barSpacing: 14 // Space between a box edge and its own text. readonly property real fieldPadding: 14 readonly property real logoSize: 36 readonly property real fontSize: 24 // Fullscreen dim behind the workspace carousel. readonly property color backdrop: "#40000000" readonly property real cardWidth: 280 readonly property real cardHeight: 220 readonly property real cardSpacing: 36 readonly property real cardRadius: 16 readonly property real monitorLabelSize: 18 // Distance from the top of the screen to each monitor's name, // which sits above the search bar. readonly property real monitorLabelTop: 20 readonly property real monitorNameSize: 22 readonly property real monitorNamePadding: 25 // Distance from the top of the screen to the search bar. readonly property real searchBarTop: 76 // Each monitor is a column of its workspaces. One step between // monitors (sideways), and one step between workspaces (down). readonly property real carouselStepX: cardWidth + 120 readonly property real carouselStepY: cardHeight + cardSpacing readonly property real carouselFadeStep: 0.35 readonly property real carouselMaxFade: 0.85 readonly property real carouselMonitorFadeStep: 0.4 readonly property real carouselMonitorMaxFade: 0.72 readonly property int carouselDuration: 220 // A swipe must cross this many pixels (or angleDelta units) before the // selection steps once. readonly property int swipeThreshold: 120 // Window bubbles inside a workspace card. readonly property real windowIconSize: 20 readonly property real windowFontSize: 16 readonly property real windowRowSpacing: 6 readonly property int maxWindowRows: 3 // Key hints. They sit under the search bar, the selected workspace and // the front window, this far below each. readonly property real hintSize: 12 readonly property real hintGap: 8 readonly property int hintFadeDuration: 160 // ── window loop ───────────────────────────────────────────────────── // Live previews on Hyprland. readonly property bool livePreviews: true // Still snapshots taken when the loop opens. On Hyprland they back up the // live previews and use grim. On niri they use niri's own screenshot, // which always shows a notification and replaces the clipboard. readonly property bool snapshotPreviewsHyprland: true readonly property bool snapshotPreviewsNiri: true // While the loop is open, its right edge sits this far from the // screen edge, as long as there is room. readonly property real loopScreenGap: 40 // Size the loop grows from as it appears. readonly property real loopStartScale: 0.6 readonly property int loopExpandDuration: 280 // With this many windows or fewer there is no planet or loop, just // flat cards side by side, this far apart. readonly property int loopFlatMaxWindows: 2 readonly property real loopFlatGap: 40 readonly property color loopCardBg: "#b30d0d10" readonly property real loopCardWidth: 440 readonly property real loopCardHeight: 320 readonly property real loopCardRadius: 16 readonly property real loopCardPadding: 14 readonly property color loopPreviewBg: "#80000000" readonly property real loopPreviewRadius: 8 // Big icon shown in the preview area when there is no picture. readonly property real loopIconSize: 96 // Title row under the preview. readonly property real loopRowHeight: 44 readonly property real loopRowIconSize: 32 readonly property real loopTitleSize: 18 readonly property real loopAppSize: 14 readonly property real loopEmptySize: 22 // The loop is as long as the cards laid side by side, plus this gap // between them. Its radius stays inside these limits. readonly property real loopCardGap: 60 readonly property real loopMinRadius: 260 // Share of the screen width the loop may take on each side of center. // Kept small so the loop fits beside the globe. readonly property real loopMaxRadiusShare: 0.27 // About how far round the loop, in degrees, a card turns edge-on and // flips to its inner face. It is moved to fall between two cards, so // none rests edge-on. Bigger means flatter cards at the sides. readonly property real loopFlipAngle: 120 // How strongly far cards shrink. Bigger means a flatter loop. readonly property real loopFocalLength: 1400 // How far the back of the loop is raised, so it shows above the front. readonly property real loopBackLift: 200 // Opacity of the card at the very back. readonly property real loopBackOpacity: 0.35 // Extra darkening of the back half, 0 to 1. readonly property real loopBackShade: 0.55 readonly property color loopBackShadeColor: "#000000" readonly property int loopTurnDuration: 320 // When Up/Down switch workspaces inside the loop, the old windows fold // into a small box that slides away, and the new ones slide in as a box // from this far away and open out. readonly property real loopSwitchOffset: 160 readonly property int loopSwitchDuration: 400 readonly property int loopCollapseDuration: 300 // Size of that box, next to a full window. It stays at least as big as // a workspace card. readonly property real loopBoxScale: Math.max(cardWidth / loopCardWidth, cardHeight / loopCardHeight) // The new windows start opening this long after the old ones start folding. readonly property int loopExpandDelay: 150 // A window preview grows out from its icon once the picture is ready. readonly property int loopPreviewGrowDuration: 700 // ── globe ─────────────────────────────────────────────────────────── // Workspace cards sit on a glass globe. Monitors go round it sideways // and workspaces go up and down. readonly property real globeRadius: 620 // How strongly far cards shrink. Bigger means a flatter globe. readonly property real globeFocalLength: 1600 // Angle between two monitors and between two workspaces, in radians. // At the front this keeps the carousel steps. readonly property real globeLonStep: carouselStepX / globeRadius readonly property real globeLatStep: carouselStepY / globeRadius // Size of the drawn sphere: where cards turn edge-on. readonly property real globeDrawRadius: globeRadius * globeFocalLength / (globeFocalLength + globeRadius) // Cards fade out as they turn away, from globeFadeFacing down to // globeHideFacing, where they are hidden. 1 faces the viewer, 0 is // edge-on. readonly property real globeFadeFacing: 0.6 readonly property real globeHideFacing: 0.2 // Cards are bent onto the globe by a shader. The bent picture keeps // this much room round each card for its glow and shadow, and is cut // into this many columns and rows. More means a smoother curve. readonly property real globeCardMargin: 40 readonly property int globeCardMeshColumns: 16 readonly property int globeCardMeshRows: 12 // While the window loop is open, the globe moves so its middle sits at // this share of the screen width, and shrinks and fades. readonly property real globeAsideCenterShare: 0.17 readonly property real globeAsideScale: 0.45 readonly property real globeAsideFade: 0.85 // Sphere colors: a lighter core, dark glass and a faint warm glow at // the edge, with a rim and faint gold grid lines. readonly property color globeCore: "#40262420" readonly property color globeTint: "#80080809" readonly property color globeEdge: "#40a08a3c" readonly property color globeRimTop: "#99e8d49a" readonly property color globeRimBottom: "#1fd8b85a" readonly property color globeGrid: "#24d8b85a" // ── planet ────────────────────────────────────────────────────────── // A globe in the middle of the window loop. Its size next to the loop // radius, and the most it may be across. readonly property real planetRadiusShare: 0.75 readonly property real planetMaxSize: 460 // It pops out, a little past full size, as the loop opens. readonly property int planetPopDuration: 450 // The loop is seen from a little above, so the planet leans toward the // viewer this much, in radians. readonly property real planetPitch: -0.35 // Space between its lines of latitude, in radians. readonly property real planetLatStep: 0.5 // ── moons ─────────────────────────────────────────────────────────── // Small previews of the workspaces above and below, over and under the // window loop. Distance from the loop's middle to each moon's middle. readonly property real moonSize: 110 readonly property real moonDistance: 380 // Window icons shown on a moon, before "+N". readonly property int moonMaxIcons: 4 readonly property real moonIconSize: 24 readonly property real moonLabelSize: 14 }