Add Store support and unsigned app releases

This commit is contained in:
Tamas Csikel
2026-10-25 14:11:49 +01:00
parent 4975784491
commit d7e9fe4568
157 changed files with 22985 additions and 944 deletions

View File

@@ -1,6 +1,8 @@
// First-run pairing guide for the Apple Siri Remote. The frosted pane behind
// it is drawn by the glass layer (see `glass-over` in app.slint).
import { BackGlyph, TvGlyph, PlayPauseGlyph, MuteGlyph, PlusGlyph, MinusGlyph, PowerGlyph, CheckIcon, AlertIcon } from "icons.slint";
// Pulsing ring that draws the eye to a button.
component Pulse inherits Rectangle {
in property <length> size;
@@ -17,9 +19,12 @@ component Pulse inherits Rectangle {
component RemoteButton inherits Rectangle {
in property <length> u;
// back | tv | playpause | mute | plus
in property <string> glyph;
in property <bool> hot;
in property <color> accent;
property <color> ink: self.hot ? self.accent.brighter(0.5) : #e8e8ea;
property <length> g: 26 * self.u;
width: 52 * self.u;
height: self.width;
border-radius: self.width / 2;
@@ -40,14 +45,11 @@ component RemoteButton inherits Rectangle {
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
}
Text {
text: root.glyph;
color: root.hot ? root.accent.brighter(0.5) : #e8e8ea;
font-size: 24 * root.u;
font-weight: 600;
horizontal-alignment: center;
vertical-alignment: center;
}
if root.glyph == "back": BackGlyph { x: (parent.width - self.width) / 2; y: (parent.height - self.height) / 2; width: root.g; height: root.g; ink: root.ink; }
if root.glyph == "tv": TvGlyph { x: (parent.width - self.width) / 2; y: (parent.height - self.height) / 2; width: root.g; height: root.g; ink: root.ink; }
if root.glyph == "playpause": PlayPauseGlyph { x: (parent.width - self.width) / 2; y: (parent.height - self.height) / 2; width: root.g; height: root.g; ink: root.ink; }
if root.glyph == "mute": MuteGlyph { x: (parent.width - self.width) / 2; y: (parent.height - self.height) / 2; width: root.g; height: root.g; ink: root.ink; }
if root.glyph == "plus": PlusGlyph { x: (parent.width - self.width) / 2; y: (parent.height - self.height) / 2; width: root.g; height: root.g; ink: root.ink; }
}
// Apple Siri Remote (2nd gen, aluminium), drawn front-on.
@@ -57,7 +59,9 @@ export component SiriRemote inherits Rectangle {
width: 150 * self.u;
height: 560 * self.u;
border-radius: 44 * self.u;
background: @linear-gradient(90deg, #8d929a 0%, #d9dde2 22%, #f1f3f5 45%, #c6cad0 75%, #959aa2 100%);
background: #c4c8ce;
border-width: 2px;
border-color: #ffffff40;
drop-shadow-blur: 30 * self.u;
drop-shadow-color: #000000a0;
drop-shadow-offset-y: 16 * self.u;
@@ -79,12 +83,12 @@ export component SiriRemote inherits Rectangle {
height: 18 * root.u;
border-radius: self.width / 2;
background: #1b1b1d;
Text {
text: "⏻";
color: #d0d0d4;
font-size: 11 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
PowerGlyph {
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
width: 12 * root.u;
height: 12 * root.u;
ink: #d0d0d4;
}
}
// Clickpad: outer touch ring and center.
@@ -118,10 +122,10 @@ export component SiriRemote inherits Rectangle {
// Button grid below the clickpad.
property <length> col1: 18 * root.u;
property <length> col2: root.width - 18 * root.u - 52 * root.u;
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 200 * root.u; glyph: "‹"; hot: true; }
RemoteButton { u: root.u; accent: root.accent; x: root.col2; y: 200 * root.u; glyph: "▭"; }
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 268 * root.u; glyph: "⏯"; }
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 336 * root.u; glyph: "🔇"; }
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 200 * root.u; glyph: "back"; hot: true; }
RemoteButton { u: root.u; accent: root.accent; x: root.col2; y: 200 * root.u; glyph: "tv"; }
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 268 * root.u; glyph: "playpause"; }
RemoteButton { u: root.u; accent: root.accent; x: root.col1; y: 336 * root.u; glyph: "mute"; }
// Volume rocker: + is the one to hold.
Rectangle {
x: root.col2;
@@ -135,19 +139,16 @@ export component SiriRemote inherits Rectangle {
accent: root.accent;
x: 0;
y: 0;
glyph: "+";
glyph: "plus";
hot: true;
background: transparent;
}
Text {
y: parent.height - 52 * root.u;
width: parent.width;
height: 52 * root.u;
text: "−";
color: #e8e8ea;
font-size: 24 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
MinusGlyph {
x: (parent.width - self.width) / 2;
y: parent.height - 52 * root.u + (52 * root.u - self.height) / 2;
width: 26 * root.u;
height: 26 * root.u;
ink: #e8e8ea;
}
}
}
@@ -157,81 +158,76 @@ component Step inherits Rectangle {
in property <int> n;
in property <string> label;
in property <color> accent;
height: 70 * self.u;
Rectangle {
// The glass bead behind the number is drawn by the glass layer (app.slint),
// on the same 48 px square.
Text {
x: 0;
y: 4 * root.u;
width: 40 * root.u;
height: self.width;
// The glass bead behind the number is drawn by the glass layer (app.slint).
Text {
text: root.n;
color: root.accent.brighter(0.6);
font-size: 20 * root.u;
font-weight: 700;
horizontal-alignment: center;
vertical-alignment: center;
}
y: 0;
width: 48 * root.u;
height: 48 * root.u;
text: root.n;
color: root.accent.brighter(0.6);
font-size: 22 * root.u;
font-weight: 700;
horizontal-alignment: center;
vertical-alignment: center;
}
Text {
x: 60 * root.u;
y: 10 * root.u;
width: parent.width - 60 * root.u;
x: 72 * root.u;
y: 6 * root.u;
width: parent.width - 72 * root.u;
text: root.label;
wrap: word-wrap;
font-size: 24 * root.u;
color: #ffffffd8;
font-size: 26 * root.u;
color: #ffffffe0;
}
}
// Pane content; `state` is the remote status from sf-remote.
// Pane content; `state` is the remote status from sf-remote. The text column
// starts at (content-x, content-y); `steps` and `pill-y` are offsets from
// there, shared with the glass beads and pills in app.slint.
export component PairingGuide inherits Rectangle {
in property <length> u;
in property <string> state;
in property <color> accent: #ff7a35;
in property <length> content-x;
in property <length> content-y;
in property <[length]> steps;
in property <length> pill-y;
property <bool> ok: self.state == "paired" || self.state == "connected";
property <bool> broken: self.state == "no-adapter";
SiriRemote {
u: root.u;
accent: root.accent;
x: 120 * root.u;
x: (root.content-x - self.width) / 2;
y: (parent.height - self.height) / 2;
}
Rectangle {
x: 420 * root.u;
y: 70 * root.u;
width: parent.width - 420 * root.u - 80 * root.u;
height: parent.height - 140 * root.u;
x: root.content-x;
y: root.content-y;
width: parent.width - root.content-x - 88 * root.u;
height: parent.height - root.content-y;
Text {
x: 0;
y: 0;
text: "ELSŐ LÉPÉS";
font-size: 20 * root.u;
font-weight: 600;
letter-spacing: 3 * root.u;
color: root.accent.brighter(0.3);
}
Text {
x: 0;
y: 34 * root.u;
width: parent.width;
text: "Párosítsd a Siri Remote-ot";
wrap: word-wrap;
font-family: "Inter Display";
font-weight: 800;
font-size: 58 * root.u;
letter-spacing: -1.6 * root.u;
font-weight: 700;
font-size: 52 * root.u;
letter-spacing: -1 * root.u;
color: #ffffff;
overflow: elide;
}
Step {
u: root.u;
accent: root.accent;
x: 0;
y: 150 * root.u;
y: root.steps[0];
width: parent.width;
height: 64 * root.u;
n: 1;
label: "Vidd a távirányítót a TV közelébe.";
}
@@ -239,33 +235,34 @@ export component PairingGuide inherits Rectangle {
u: root.u;
accent: root.accent;
x: 0;
y: 226 * root.u;
y: root.steps[1];
width: parent.width;
height: 100 * root.u;
n: 2;
label: "Tartsd nyomva egyszerre a Vissza (‹) és a Hangerő + gombot kb. 5 másodpercig.";
label: "Tartsd nyomva egyszerre a Vissza és a Hangerő + gombot, kb. 5 másodpercig.";
}
Step {
u: root.u;
accent: root.accent;
x: 0;
y: 330 * root.u;
y: root.steps[2];
width: parent.width;
height: 64 * root.u;
n: 3;
label: "Engedd el. A TV magától megtalálja és párosítja.";
}
// Live status.
// Live status, on the glass pill drawn by app.slint (520 x 64).
Rectangle {
x: 0;
y: parent.height - 70 * root.u;
y: root.pill-y;
width: 520 * root.u;
height: 64 * root.u;
// Glass pill (tinted by state) is drawn by the glass layer (app.slint).
// Searching: three breathing dots. Done: check mark. Error: "!".
// Searching: three breathing dots. Done: check mark. Error: alert.
if !root.ok && !root.broken: HorizontalLayout {
x: 26 * root.u;
width: 60 * root.u;
x: 0;
width: 56 * root.u;
spacing: 8 * root.u;
alignment: start;
for i in 3: Rectangle {
@@ -278,41 +275,47 @@ export component PairingGuide inherits Rectangle {
opacity: 0.25 + 0.75 * abs(sin(self.p * 180deg));
}
}
if root.ok || root.broken: Text {
x: 26 * root.u;
width: 40 * root.u;
height: parent.height;
text: root.ok ? "✓" : "!";
color: root.ok ? #34c759 : #ff9f0a;
font-size: 30 * root.u;
font-weight: 800;
vertical-alignment: center;
if root.ok: CheckIcon {
x: 24 * root.u;
y: (parent.height - self.height) / 2;
width: 32 * root.u;
height: 32 * root.u;
ink: #34c759;
}
if root.broken: AlertIcon {
x: 24 * root.u;
y: (parent.height - self.height) / 2;
width: 32 * root.u;
height: 32 * root.u;
ink: #ff9f0a;
}
Text {
x: 92 * root.u;
width: parent.width - 110 * root.u;
x: root.ok || root.broken ? 72 * root.u : 64 * root.u;
width: parent.width - 96 * root.u;
height: parent.height;
vertical-alignment: center;
font-size: 24 * root.u;
font-weight: 500;
color: #ffffff;
text: root.ok ? "Sikeres párosítás!"
overflow: elide;
text: root.ok ? "Sikeres párosítás"
: root.broken ? "Nem található Bluetooth adapter"
: root.state == "pairing" ? "Párosítás…"
: "Távirányító keresése…";
}
}
// Skip chip (glass in app.slint, 200 x 64).
Text {
x: 556 * root.u;
y: parent.height - 68 * root.u;
width: 204 * root.u;
height: 60 * root.u;
x: 544 * root.u;
y: root.pill-y;
width: 200 * root.u;
height: 64 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
text: "Kihagyás · Esc";
font-size: 21 * root.u;
font-weight: 500;
color: #ffffffc0;
text: "Kihagyás";
font-size: 24 * root.u;
font-weight: 600;
color: #ffffffd0;
}
}
}