Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Use arrow cursor and Fluent focus ring

Bittib88e7e69d863
diff --git a/src/styles/agent-dock.css b/src/styles/agent-dock.css
index 01d1129..daac041 100644
--- a/src/styles/agent-dock.css
+++ b/src/styles/agent-dock.css
@@ -277,7 +277,6 @@
.agent-dock .agent-provider__trigger:disabled {
color: var(--text-faint);
background: var(--panel-3);
- cursor: not-allowed;
}
.agent-provider__trigger:disabled .agent-provider__name,
@@ -308,7 +307,6 @@
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: var(--text-sm);
- cursor: pointer;
}
.agent-provider__option[aria-selected="true"] {
diff --git a/src/styles/base.css b/src/styles/base.css
index 451cfc1..19b187a 100644
--- a/src/styles/base.css
+++ b/src/styles/base.css
@@ -15,8 +15,6 @@
color: var(--text-primary);
background: var(--bg);
font-synthesis: none;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
}
html,
@@ -62,6 +60,15 @@ h4 {
line-height: var(--leading-tight);
}
+/* Titles use the Display optical size of Segoe UI Variable, which is drawn
+ for 20px and up. h4 is used for small in-panel labels, so it stays on the
+ Text cut. */
+h1,
+h2,
+h3 {
+ font-family: var(--font-display);
+}
+
code,
kbd,
samp,
@@ -83,13 +90,40 @@ button {
color: inherit;
}
+/* The arrow, everywhere. On Windows the hand cursor means "this is a
+ hyperlink" and nothing else; a button, a tab, a card or a checkbox shows the
+ arrow and answers with a fill change instead. A disabled control shows the
+ arrow too — Windows has no "not allowed" cursor for a greyed-out button.
+ Other sheets set only the cursors that mean something: grab/grabbing on a
+ drag handle, the resize arrows on a splitter, text on a text surface. */
button,
-select {
+select,
+label,
+summary,
+[role="button"],
+[role="tab"],
+[role="option"],
+[role="menuitem"],
+input[type="checkbox"],
+input[type="radio"],
+input[type="range"],
+input[type="color"],
+input[type="file"],
+:disabled {
+ cursor: default;
+}
+
+a[href] {
cursor: pointer;
}
-button:disabled {
- cursor: not-allowed;
+/* Images and links are not drag sources in a native app: dragging a thumbnail
+ used to pick up a ghost of the file URL. Rows and cards that ask to be
+ dragged (draggable="true") still drag — the drag falls through the image to
+ the ancestor that is the real source. */
+img,
+a {
+ -webkit-user-drag: none;
}
input,
@@ -118,17 +152,37 @@ option {
opacity: 1;
}
-/* --- Focus ----------------------------------------------------------------- */
+/* --- Focus -----------------------------------------------------------------
+ The Fluent focus visual, for the keyboard only: a 2px ring in the text
+ colour (--focus-outer) standing 1px off the control, with that 1px gap
+ filled by --focus-inner so the ring reads on any fill, the accent included.
+ The outline is the outer ring; a box-shadow spread is the inner one.
+ Text inputs are deliberately NOT in this list. Chromium matches
+ input:focus-visible on a mouse click, so a ring there drew every time a
+ field was clicked; a Fluent TextBox shows focus as a 2px accent underline
+ instead (controls.css), and composite fields (search, composer, dock)
+ draw that underline on their wrapper. */
button:focus-visible,
-input:focus-visible,
-textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
-[tabindex]:focus-visible {
- outline: var(--focus-ring-width) solid var(--focus-ring-color);
- outline-offset: 2px;
+[tabindex]:focus-visible,
+input[type="checkbox"]:focus-visible,
+input[type="radio"]:focus-visible,
+input[type="range"]:focus-visible,
+input[type="color"]:focus-visible,
+input[type="button"]:focus-visible,
+input[type="submit"]:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-outer);
+ outline-offset: 1px;
+ box-shadow: 0 0 0 1px var(--focus-inner);
+}
+
+input:focus-visible:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"]),
+textarea:focus-visible,
+[contenteditable="true"]:focus-visible {
+ outline: none;
}
@media (prefers-reduced-motion: reduce) {
@@ -142,6 +196,20 @@ a:focus-visible,
}
}
+/* The Fluent ProgressRing, for anything that waits without a known length.
+ A 16px ring whose arc sweeps round; it replaces bouncing dots and pulsing
+ glows. Wears currentColor so it follows whatever label it replaces. */
+.progress-ring {
+ width: 16px;
+ height: 16px;
+ flex: none;
+ border: 2px solid transparent;
+ border-top-color: currentColor;
+ border-right-color: currentColor;
+ border-radius: 50%;
+ animation: spin 0.9s linear infinite;
+}
+
/* --- Utilities ------------------------------------------------------------- */
.sr-only {
diff --git a/src/styles/controls.css b/src/styles/controls.css
index 5159878..bc7f34e 100644
--- a/src/styles/controls.css
+++ b/src/styles/controls.css
@@ -42,7 +42,6 @@
border-color: var(--line);
color: var(--button-primary-off-ink);
background: var(--button-primary-off-bg);
- cursor: not-allowed;
}
.secondary-button {
@@ -60,7 +59,6 @@
.secondary-button:disabled {
opacity: 0.5;
- cursor: not-allowed;
}
.fill-button {
@@ -86,7 +84,6 @@
opacity: 1;
color: var(--text-faint);
background: var(--wash-2);
- cursor: not-allowed;
}
.danger-button {
diff --git a/src/styles/export.css b/src/styles/export.css
index 52a8564..014d6f5 100644
--- a/src/styles/export.css
+++ b/src/styles/export.css
@@ -258,7 +258,6 @@
border-radius: 50%;
color: var(--on-stage);
background: transparent;
- cursor: pointer;
filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--stage-bg) 55%, transparent));
transition: color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}
@@ -275,7 +274,6 @@
}
.export-transport button:disabled {
- cursor: not-allowed;
opacity: 0.42;
}
@@ -298,7 +296,6 @@
border: 0;
outline: 0;
background: transparent;
- cursor: pointer;
}
.export-transport input[type="range"]::-webkit-slider-runnable-track {
@@ -408,7 +405,6 @@
.export-fields select:disabled {
color: var(--text-faint);
- cursor: not-allowed;
}
.export-field-note p {
diff --git a/src/styles/generator.css b/src/styles/generator.css
index 7416b56..16a9f26 100644
--- a/src/styles/generator.css
+++ b/src/styles/generator.css
@@ -80,7 +80,6 @@
background: color-mix(in srgb, var(--success) 10%, var(--panel-2));
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
- cursor: pointer;
transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
@@ -336,7 +335,6 @@
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: var(--panel);
- cursor: pointer;
}
.scene-section--current > .scene-rule {
@@ -384,7 +382,6 @@
color: inherit;
background: none;
text-align: left;
- cursor: pointer;
}
.scene-rule__summary:hover .scene-rule__text b {
@@ -575,7 +572,6 @@
color: var(--text-secondary);
background: none;
text-align: left;
- cursor: pointer;
}
.scene-bar__label:hover {
@@ -695,7 +691,6 @@
color: inherit;
background: none;
text-align: left;
- cursor: pointer;
}
.shot-card:focus-within {
@@ -784,7 +779,6 @@
border-style: dashed;
color: var(--text-muted);
background: none;
- cursor: pointer;
}
.shot-card--add:hover {
@@ -851,7 +845,6 @@
.shot-thumb--playable {
padding: 0;
border: 0;
- cursor: pointer;
}
.shot-thumb__play {
@@ -1102,7 +1095,6 @@
font-family: var(--font-sans);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
- cursor: pointer;
}
.reference-smart-chip--broken {
@@ -1921,7 +1913,6 @@
margin: var(--space-2) calc(var(--space-2) * -1) 0;
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
- cursor: pointer;
}
.job-ref:hover {
@@ -2038,7 +2029,6 @@
is never left with prose and no way forward. */
.job-actions .primary-button:disabled {
- cursor: not-allowed;
color: var(--text-muted);
border-color: var(--line-strong);
background: var(--panel-3);
diff --git a/src/styles/library.css b/src/styles/library.css
index e17bcde..5c62192 100644
--- a/src/styles/library.css
+++ b/src/styles/library.css
@@ -151,7 +151,7 @@
}
.composer__type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
-.composer__type-option { position: relative; min-width: 0; cursor: pointer; }
+.composer__type-option { position: relative; min-width: 0; }
.composer__type-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); overflow: hidden; }
.composer__type-card {
@@ -178,7 +178,7 @@
.composer__type-input:checked + .composer__type-card .composer__type-indicator::after { opacity: 1; }
.composer__type-input:not(:disabled) + .composer__type-card:hover { border-color: var(--accent-line-strong); }
.composer__type-input:focus-visible + .composer__type-card { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--space-1); }
-.composer__type-input:disabled + .composer__type-card { opacity: 0.5; cursor: not-allowed; }
+.composer__type-input:disabled + .composer__type-card { opacity: 0.5; }
@media (max-width: 600px) {
.composer__project-type { margin-inline: var(--space-4); }
@@ -340,7 +340,6 @@
}
.composer__attach:disabled {
- cursor: not-allowed;
color: var(--text-faint);
border-color: var(--line);
}
@@ -900,7 +899,6 @@
.delete-project-dialog__confirm:disabled {
opacity: 0.6;
- cursor: not-allowed;
}
.delete-project-dialog .spin {
diff --git a/src/styles/references.css b/src/styles/references.css
index fff754b..f03ef7d 100644
--- a/src/styles/references.css
+++ b/src/styles/references.css
@@ -670,7 +670,7 @@
.reference-trim__scroll { min-width: 0; overflow-x: auto; padding-bottom: var(--space-2); }
.reference-trim__track { width: 100%; padding: 2px 4px; }
.reference-trim__ticks { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
-.reference-trim__bar { position: relative; height: 40px; margin: 8px 7px 0; border-radius: var(--radius-sm); background: var(--panel-3); touch-action: none; user-select: none; cursor: pointer; }
+.reference-trim__bar { position: relative; height: 40px; margin: 8px 7px 0; border-radius: var(--radius-sm); background: var(--panel-3); touch-action: none; user-select: none; }
.reference-trim__selection { position: absolute; top: 0; bottom: 0; display: flex; border: 2px solid var(--accent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
.reference-trim__selection button { touch-action: none; border: 0; padding: 0; }
.reference-trim__handle { position: absolute; top: -2px; bottom: -2px; width: 14px; border-radius: 3px; background: var(--accent); cursor: ew-resize; z-index: 1; }
diff --git a/src/styles/settings.css b/src/styles/settings.css
index a8fba06..5d705f2 100644
--- a/src/styles/settings.css
+++ b/src/styles/settings.css
@@ -85,7 +85,6 @@
font-size: var(--text-base);
font-weight: var(--weight-medium);
line-height: var(--leading-snug);
- cursor: pointer;
}
.settings-tabs button:hover {
@@ -141,7 +140,6 @@
display: flex;
align-items: center;
gap: var(--space-3);
- cursor: pointer;
}
.reference-icon-settings .generator-template-fields {
flex: 0 1 320px;
@@ -290,7 +288,6 @@
justify-content: center;
width: var(--control-sm);
height: var(--control-sm);
- cursor: pointer;
}
.generator-template-fields {
@@ -331,7 +328,6 @@
margin-top: var(--space-3);
color: var(--text-secondary);
font-size: var(--text-sm);
- cursor: pointer;
}
.diagnostics-backend {
@@ -441,7 +437,6 @@
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: var(--wash-1);
- cursor: pointer;
}
.diagnostics-debug-option input,
@@ -487,7 +482,6 @@
border-radius: var(--radius-lg);
color: var(--text-muted);
background: var(--wash-1);
- cursor: pointer;
transition: 0.16s ease;
}
@@ -683,7 +677,6 @@
.settings-path label {
display: block;
- cursor: pointer;
}
.settings-path label b {
@@ -728,7 +721,6 @@
}
.weight-sources { min-width: 0; font-size: var(--text-sm); color: var(--text-muted); }
-.weight-sources summary { cursor: pointer; }
.weight-sources p { margin: var(--space-2) 0; }
.weight-source { display: grid; grid-template-columns: minmax(0, 1fr) 135px 125px auto; gap: var(--space-2); align-items: end; margin: var(--space-3) 0; }
.weight-source label { min-width: 0; font-size: var(--text-xs); }
diff --git a/src/styles/timeline.css b/src/styles/timeline.css
index 7a22859..6438e6d 100644
--- a/src/styles/timeline.css
+++ b/src/styles/timeline.css
@@ -539,11 +539,6 @@
will-change: transform, opacity, filter, clip-path;
}
-.program-picture--selectable video,
-.program-picture--selectable img,
-.program-picture--selectable canvas {
- cursor: pointer;
-}
/* Timeline-only direct manipulation. The export monitor never receives the
editing callbacks, so none of this chrome can appear in an exported preview. */
@@ -728,7 +723,7 @@
.inspector-section input[readonly] { color: var(--text-muted); }
.inspector-section--pending { opacity: 0.72; }
.inspector-section input:disabled,
-.inspector-section select:disabled { color: var(--text-faint); cursor: not-allowed; }
+.inspector-section select:disabled { color: var(--text-faint); }
.clip-inspector .inspector-section .clip-title__name {
width: 100%;
@@ -763,7 +758,6 @@
.range-field b { color: var(--text-primary); font-weight: var(--weight-medium); }
.range-field input { width: 100%; height: var(--control-sm); accent-color: var(--accent-bright); }
-.range-field input:disabled { cursor: not-allowed; }
.inspector-empty {
min-height: 280px;
@@ -932,7 +926,6 @@
and its title is the whole explanation of why it is off. */
.timeline-transport button:disabled {
color: var(--text-faint);
- cursor: not-allowed;
}
.timeline-transport .play-button:disabled {
@@ -1004,7 +997,6 @@
explanation of why it is off, and nobody hovers what they cannot read. */
.timeline-tools button:disabled {
color: var(--text-faint);
- cursor: not-allowed;
}
/* --- Track grid ------------------------------------------------------------ */
@@ -1198,7 +1190,6 @@
ever reaches it. A dark lane alone was indistinguishable from a lane the
pointer merely was not over. */
.track-lane--reject {
- cursor: not-allowed;
background-image: repeating-linear-gradient(
135deg,
var(--hatch-strong) 0 6px,
@@ -1532,12 +1523,12 @@
.clip-effect__remove:hover:not(:disabled) { color: var(--text-primary); background: var(--panel-3); }
.clip-effect .effect-color { display: flex; align-items: center; gap: var(--space-2); }
.clip-effect .effect-color > span { margin: 0; margin-right: auto; }
-.clip-effect .effect-color input { width: 36px; padding: 3px; cursor: pointer; }
+.clip-effect .effect-color input { width: 36px; padding: 3px; }
.effect-color code { font-size: var(--text-xs); color: var(--text-muted); }
.clip-effects { position: relative; padding: var(--space-3) var(--space-4); }
.clip-effects__add { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; padding: var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text-primary); font-size: var(--text-sm); }
.clip-effects__add:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-3); }
-.clip-effects__add:disabled, .clip-effect__remove:disabled { opacity: .45; cursor: not-allowed; }
+.clip-effects__add:disabled, .clip-effect__remove:disabled { opacity: .45; }
.clip-effects__picker { position: absolute; z-index: 5; bottom: calc(100% - var(--space-2)); left: var(--space-4); right: var(--space-4); padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--panel-2); box-shadow: var(--shadow-sm); max-height: min(280px, 40vh); overflow-y: auto; }
.clip-effects__picker button { display: flex; flex-direction: column; gap: 3px; width: 100%; border: 0; border-radius: var(--radius-sm); padding: var(--space-2); background: transparent; color: var(--text-primary); text-align: left; }
.clip-effects__picker button:hover, .clip-effects__picker button:focus-visible { outline: none; background: var(--panel-3); }