Files
lucid/Capture.qml
T
Sn3akyy1 1ece33ddb8 Lucid 2: shared ui kit, new singletons and the session screen
Snapshot of the overhaul that had been sitting uncommitted in the working
tree since 2026-09-22, carried across a checkout of the clipboard PR branch.

- lucidui/: a shared component kit the modules now build on
- new singletons: Agenda, Capture, Chrono, Power, Recorder, Sys, Zones
- lucidsession/: the session screen
- lucidbar: the clock grows Calendar, Stopwatch, Timers, Today and World views
- lucidwidgets: Fetch, Glance, Photo and Timer widgets
- the launcher drops its power row, which PowerRow.qml went with
- assets/fonts/: the OFL Google Sans Flex release the shell renders with

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 20:00:28 +02:00

21 lines
632 B
QML

import QtQuick
import Quickshell
pragma Singleton
// what LucidShot's recorder is doing, for the surfaces outside its window: the
// bar's chip and the control centre's tile. the overlay writes it, they read it
Singleton {
// "idle" | "recording" | "paused"
property string state: "idle"
property int seconds: 0
// the toolbar was tucked away mid-recording, so nothing else shows it is on
property bool hidden: false
readonly property bool active: state !== "idle"
signal showRequested()
function clock(sec) {
return Math.floor(sec / 60) + ":" + String(sec % 60).padStart(2, "0");
}
}