Files
skygqts/window-carousel/Theme.qml
T
2026-09-23 11:56:03 -04:00

54 lines
2.1 KiB
QML

import QtQuick
QtObject {
readonly property color textColor: "#ffffff"
readonly property color labelColor: "#a9b1d6"
readonly property color accent: "#7aa2f7"
readonly property color cardBg: "#e61a1e2a"
readonly property color cardBorder: "#40ffffff"
// Fullscreen dim behind the carousel.
readonly property color backdrop: "#990b0e14"
// Off by default: every niri preview screenshot also replaces the
// clipboard. Hyprland previews are live and never touch it.
readonly property bool niriScreenshots: true
readonly property real cardWidth: 440
readonly property real cardHeight: 320
readonly property real cardRadius: 16
readonly property real cardPadding: 14
readonly property color previewBg: "#660b0e14"
readonly property real previewRadius: 8
// Big icon shown in the preview area when there is no picture.
readonly property real iconSize: 96
// Title row under the preview.
readonly property real rowHeight: 44
readonly property real rowIconSize: 32
readonly property real titleSize: 18
readonly property real appSize: 14
readonly property real emptySize: 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 cardGap: 60
readonly property real minRadius: 260
// Share of the screen width the loop may take on each side of center.
readonly property real maxRadiusShare: 0.42
// How strongly far cards shrink. Bigger means a flatter loop.
readonly property real focalLength: 1400
// How far the back of the loop is raised, so it shows above the front.
readonly property real backLift: 200
// Opacity of the card at the very back.
readonly property real backOpacity: 0.35
// Extra darkening of the back half, 0 to 1.
readonly property real backShade: 0.55
readonly property int turnDuration: 320
// A swipe must cross this many pixels (or angleDelta units) before the
// loop turns one step.
readonly property int swipeThreshold: 120
}