Coherence: one component per idea, one spelling per word, one truth per claim

Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
Gabriel Brown
2026-08-25 02:21:45 -04:00
parent 06c53d6c21
commit bd2fd12de2
87 changed files with 660 additions and 766 deletions
@@ -90,7 +90,7 @@ Column {
case "workspace":
return "on workspace " + String(root.trigger.id ?? 1);
case "fullscreen":
return "when an app is fullscreen";
return "when an application is fullscreen";
default:
return "manually";
}
@@ -111,7 +111,7 @@ Column {
+ (root.allow.length === 0
? ""
: " except " + root.allow.length
+ (root.allow.length === 1 ? " app" : " apps")));
+ (root.allow.length === 1 ? " application" : " applications")));
}
if (root.mode.keepAwake === true)
effects.push(hypothetical ? "would keep the screen awake" : "keeps the screen awake");
@@ -349,7 +349,7 @@ Column {
},
{
value: "fullscreen",
label: "When an app is fullscreen",
label: "When an application is fullscreen",
detail: "On while a window is fullscreen on the focused display"
}
]
@@ -398,41 +398,30 @@ Column {
spacing: 5
Repeater {
// `name` is what a screen reader says: four of the seven
// initials repeat, so the letter alone is not a day.
model: [
{ value: 1, label: "M" }, { value: 2, label: "T" },
{ value: 3, label: "W" }, { value: 4, label: "T" },
{ value: 5, label: "F" }, { value: 6, label: "S" },
{ value: 0, label: "S" }
{ value: 1, label: "M", name: "Monday" },
{ value: 2, label: "T", name: "Tuesday" },
{ value: 3, label: "W", name: "Wednesday" },
{ value: 4, label: "T", name: "Thursday" },
{ value: 5, label: "F", name: "Friday" },
{ value: 6, label: "S", name: "Saturday" },
{ value: 0, label: "S", name: "Sunday" }
]
delegate: Rectangle {
// Seven of them across, so they share one width rather than
// each taking the width of its own letter.
delegate: SettingsChip {
id: dayPill
required property var modelData
readonly property bool on:
(root.trigger.days ?? []).indexOf(dayPill.modelData.value) >= 0
width: 30
height: 28
radius: 8
color: dayPill.on ? Theme.alpha(Theme.accent, 0.22)
: Theme.alpha(Theme.fg, 0.06)
border.width: 1
border.color: dayPill.on ? Theme.alpha(Theme.accent, 0.5)
: Theme.alpha(Theme.fg, 0.08)
Text {
anchors.centerIn: parent
text: String(dayPill.modelData.label)
color: dayPill.on ? Theme.fg : Theme.fgDim
font.family: Theme.fontFamily
font.pixelSize: Theme.fontSizeSmall
font.weight: dayPill.on ? Font.DemiBold : Font.Medium
}
HoverHandler { cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: root.toggleDay(dayPill.modelData.value) }
text: String(dayPill.modelData.label)
active: (root.trigger.days ?? []).indexOf(dayPill.modelData.value) >= 0
Accessible.name: String(dayPill.modelData.name)
onClicked: root.toggleDay(dayPill.modelData.value)
}
}
}