Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Every text preset card says Aa, on a grey ground rather than black

Jareer42ddbaba8536
diff --git a/engine/crates/concat/ui/theme/dark.slint b/engine/crates/concat/ui/theme/dark.slint
index c0688d5f..667cb287 100644
--- a/engine/crates/concat/ui/theme/dark.slint
+++ b/engine/crates/concat/ui/theme/dark.slint
@@ -218,6 +218,10 @@ export global Dark {
// picture. The dim ink is for the line that says there is none.
out property <color> stage: #000000;
out property <color> on-stage-dim: #ffffff6b;
+ // A sample of something meant for footage - a title look on a card -
+ // sits on a dark ground so a white title reads, but a grey one rather
+ // than the stage's black, so the card is a card and not a hole.
+ out property <color> sample-ground: #2c2c2e;
// The sheet that covers the window behind a dialog. Dark rather than
// tinted: it has to work over the whole editor, and any hue in it would
diff --git a/engine/crates/concat/ui/theme/light.slint b/engine/crates/concat/ui/theme/light.slint
index 2ef6ef46..8118e6f5 100644
--- a/engine/crates/concat/ui/theme/light.slint
+++ b/engine/crates/concat/ui/theme/light.slint
@@ -181,6 +181,9 @@ export global Light {
// picture. This is the one place a light theme is asked to stay dark.
out property <color> stage: #000000;
out property <color> on-stage-dim: #ffffff6b;
+ // Dark here too, for the same reason as the stage, but lifted well off
+ // black so it sits in a light window as a card rather than a hole.
+ out property <color> sample-ground: #4a4a50;
// The sheet that covers the window behind a dialog. Lighter than the dark
// palette's — it only has to push a light window back far enough for a
diff --git a/engine/crates/concat/ui/theme/theme.slint b/engine/crates/concat/ui/theme/theme.slint
index 95fcd6de..5ab23059 100644
--- a/engine/crates/concat/ui/theme/theme.slint
+++ b/engine/crates/concat/ui/theme/theme.slint
@@ -169,6 +169,7 @@ export global Theme {
// the monitor
out property <color> stage: dark ? Dark.stage : Light.stage;
+ out property <color> sample-ground: dark ? Dark.sample-ground : Light.sample-ground;
out property <color> on-stage-dim: dark ? Dark.on-stage-dim : Light.on-stage-dim;
// sheets over things that are not panels
diff --git a/engine/crates/concat/ui/workspace/media-pane.slint b/engine/crates/concat/ui/workspace/media-pane.slint
index a66f5c43..1ad6fc3e 100644
--- a/engine/crates/concat/ui/workspace/media-pane.slint
+++ b/engine/crates/concat/ui/workspace/media-pane.slint
@@ -977,9 +977,10 @@ component TextPage inherits Rectangle {
}
}
-// One preset, as a card: the name drawn in the look, on the stage's own
-// dark ground so a white title reads as it will on footage, with the plate
-// behind it when the look has one.
+// One preset, as a card: the same "Aa" drawn in every look, on a dark
+// ground so a white title reads as it will on footage, with the plate
+// behind it when the look has one. The same two letters on every card so
+// the looks compare, the names being underneath.
component PresetCard inherits Rectangle {
in property <TextPresetData> preset;
@@ -1007,7 +1008,7 @@ component PresetCard inherits Rectangle {
y: 0;
height: root.width * 9 / 16;
border-radius: Theme.r;
- background: Theme.stage;
+ background: Theme.sample-ground;
border-width: 1px;
border-color: touch.has-hover ? Theme.line-strong : Theme.line;
clip: true;
@@ -1025,7 +1026,7 @@ component PresetCard inherits Rectangle {
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
width: Math.min(parent.width - 12px, self.preferred-width);
- text: root.preset.name;
+ text: "Aa";
color: root.preset.fill;
font-family: root.preset.family;
font-weight: root.preset.weight;