diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-23 16:53:17 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-23 16:53:17 +0200 |
| commit | 1dea40ea309d72d2aa28983d13800074eff9ec3f (patch) | |
| tree | 39b6765902110f4fcea55771976426e94a35d501 /desktop/modules/companion | |
| parent | 7c8688ca7e6155f9e8db3978fd8df83b033f61af (diff) | |
| download | quickshell-1dea40ea309d72d2aa28983d13800074eff9ec3f.tar.gz quickshell-1dea40ea309d72d2aa28983d13800074eff9ec3f.zip | |
companion: the leotard's timeout is a setting, or none at all
Settings > Desktop > Companion takes the seconds she stays in the
leotard after the self-destruct, 60 as before. Switched off, she keeps
it until she is hidden and shown again, which already put the dress
back early. Mood.outfit takes the time instead of reading T.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/companion')
| -rw-r--r-- | desktop/modules/companion/CompanionModule.qml | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/desktop/modules/companion/CompanionModule.qml b/desktop/modules/companion/CompanionModule.qml index abd852a..6ed36ec 100644 --- a/desktop/modules/companion/CompanionModule.qml +++ b/desktop/modules/companion/CompanionModule.qml @@ -24,7 +24,7 @@ Module { icon: "\u{F0899}" settings: true group: "Desktop" - keywords: ["companion", "2b", "mascot", "character", "show", "hide", "wallpaper", "blush"] + keywords: ["companion", "2b", "mascot", "character", "show", "hide", "wallpaper", "blush", "leotard", "timeout"] page: Component { Page { @@ -58,6 +58,48 @@ Module { font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 5 } } } + // After the self-destruct. Off keeps the leotard until she is + // hidden and shown again; turning it back on starts from the + // seconds in the field. + Item { + width: parent.width + height: 34 + Text { + id: lblSk + anchors { left: parent.left; verticalCenter: parent.verticalCenter } + width: 160 + text: "Leotard timeout" + color: Theme.subtext + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 3 } + } + Switch { + id: swSk + anchors { left: lblSk.right; leftMargin: 8; verticalCenter: parent.verticalCenter } + checked: Prefs.companionSkirtless > 0 + onToggled: on => Prefs.setCompanionSkirtless(on ? (parseInt(fSk.value) || 60) : 0) + } + Field { + id: fSk + anchors { left: swSk.right; leftMargin: 10; verticalCenter: parent.verticalCenter } + width: 60 + enabled: swSk.checked + opacity: enabled ? 1 : 0.4 + value: String(Prefs.companionSkirtless || 60) + placeholder: "60" + onEdited: { + const n = parseInt(value); + if (n >= 1 && String(n) === value.trim()) Prefs.setCompanionSkirtless(n); + else value = String(Prefs.companionSkirtless || 60); + } + } + Text { + anchors { left: fSk.right; leftMargin: 10; right: parent.right; verticalCenter: parent.verticalCenter } + elide: Text.ElideRight + text: swSk.checked ? "seconds" : "until she is hidden and shown again" + color: Theme.overlay + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 5 } + } + } Item { width: parent.width height: 34 |
