SmartFox: launcher, Siri Remote driver, Debian image and installer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-24 09:06:06 +02:00
commit 79b03cac95
91 changed files with 15874 additions and 0 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,92 @@
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -0,0 +1,295 @@
// Vector icons (32x32 viewbox). Brand marks are simplified, original drawings.
export component AppIcon inherits Rectangle {
in property <string> icon;
in property <color> ink: #ffffff;
if root.icon == "netflex": Rectangle {
// Netflex mark: mirrored "N" in three ribbons (from netflex/apps/web/public/favicon.svg).
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M7 3h6v26H7z";
fill: @linear-gradient(180deg, #b20710 0%, #831010 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19 3h6v26h-6z";
fill: @linear-gradient(0deg, #b20710 0%, #831010 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M18.4 3h6.6L13.6 29H7z";
fill: #00000059;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19 3h6L13 29H7z";
fill: @linear-gradient(35deg, #e50914 0%, #f6303a 100%);
}
}
if root.icon == "youtube": Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M3 11.2C3 8.4 5 6.6 7.8 6.4 11.4 6.1 20.6 6.1 24.2 6.4 27 6.6 29 8.4 29 11.2v9.6c0 2.8-2 4.6-4.8 4.8-3.6.3-12.8.3-16.4 0C5 25.4 3 23.6 3 20.8z";
fill: @linear-gradient(160deg, #ff3b30 0%, #d90d1d 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M13.2 11.6v8.8l7.6-4.4z";
fill: #ffffff;
}
}
if root.icon == "airplay": Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9.5 22.5H6.5a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3h19a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-3";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M16 18.5l7 9.5H9z";
fill: @linear-gradient(180deg, #8fd0ff 0%, #3d8bff 100%);
}
}
if root.icon == "miracast": Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M6.5 5h19a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-19a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3zM11 28h10";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M10.5 13.2a8 8 0 0 1 11 0M13.3 16.3a4 4 0 0 1 5.4 0";
stroke: #5ff0d4;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14.4 19.4a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0-3.2 0z";
fill: #5ff0d4;
}
}
if root.icon == "settings": Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M5 10h22M5 22h22";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M8.2 10a3.8 3.8 0 1 0 7.6 0a3.8 3.8 0 1 0-7.6 0zM16.2 22a3.8 3.8 0 1 0 7.6 0a3.8 3.8 0 1 0-7.6 0z";
fill: @linear-gradient(180deg, #ffffff 0%, #b9c4d4 100%);
}
}
}
// SmartFox brand mark: a geometric fox head.
export component FoxMark inherits Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M3 5l8 6h10l8-6-2.2 13.5L16 28 5.2 18.5z";
fill: @linear-gradient(150deg, #ffb14a 0%, #ff6a2b 55%, #ff3d6e 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M5.2 18.5L16 15l10.8 3.5L16 28z";
fill: #ffffff2e;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14 21.5h4L16 24z";
fill: #1b0d08;
}
}
export component WifiIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M4.5 12.5a16.5 16.5 0 0 1 23 0M8.8 16.8a10.4 10.4 0 0 1 14.4 0M13 21a4.3 4.3 0 0 1 6 0";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14.4 25.4a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0-3.2 0z";
fill: root.ink;
}
}
export component BluetoothIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9.5 10.5l13 11-6.5 5.5V5l6.5 5.5-13 11";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component PlayIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9 5.5v21c0 1.2 1.3 1.9 2.3 1.3l16.5-10.5a1.5 1.5 0 0 0 0-2.6L11.3 4.2C10.3 3.6 9 4.3 9 5.5z";
fill: root.ink;
}
}
export component InfoIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M4 16a12 12 0 1 0 24 0a12 12 0 1 0-24 0zM16 14.5v8";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14.4 10a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0-3.2 0z";
fill: root.ink;
}
}
export component DisplayIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M6.5 6h19a2.5 2.5 0 0 1 2.5 2.5v11a2.5 2.5 0 0 1-2.5 2.5h-19A2.5 2.5 0 0 1 4 19.5v-11A2.5 2.5 0 0 1 6.5 6zM11 27h10";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
// Wi-Fi strength: `level` arcs (1-4) lit, the rest dimmed.
export component SignalIcon inherits Rectangle {
in property <color> ink: #ffffff;
in property <int> level: 4;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M4.5 12.5a16.5 16.5 0 0 1 23 0";
stroke: root.level >= 4 ? root.ink : root.ink.transparentize(0.75);
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M8.8 16.8a10.4 10.4 0 0 1 14.4 0";
stroke: root.level >= 3 ? root.ink : root.ink.transparentize(0.75);
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M13 21a4.3 4.3 0 0 1 6 0";
stroke: root.level >= 2 ? root.ink : root.ink.transparentize(0.75);
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14.4 25.4a1.6 1.6 0 1 0 3.2 0a1.6 1.6 0 1 0-3.2 0z";
fill: root.ink;
}
}
export component LockIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M10.5 14.5v-3.5a5.5 5.5 0 0 1 11 0v3.5";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9 14.5h14a2 2 0 0 1 2 2v8.5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-8.5a2 2 0 0 1 2-2z";
fill: root.ink;
}
}
// Keyboard keys.
export component SpaceIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M5 13.5v5h22v-5";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component DeleteIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M12.5 7.5h13a2.5 2.5 0 0 1 2.5 2.5v12a2.5 2.5 0 0 1-2.5 2.5h-13L4 16zM15.5 12.5l7 7M22.5 12.5l-7 7";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component PowerIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M10.3 8.6a10.5 10.5 0 1 0 11.4 0M16 4.5v11";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
}

View File

@@ -0,0 +1,190 @@
// On-screen keyboard in the tvOS style: one horizontal row of characters,
// the text field above it and the mode chips below.
//
// Drawn inside the settings pane, which stays; the settings content fades out.
// Only text and icons are drawn here. The glass (field, key track, focus lens,
// chips) comes from `keyboard::glass` in Rust, which mirrors the geometry the
// App exports (kb-* properties): keep the two in sync.
//
// Key row: index 0 = space, 1..n-2 = characters, n-1 = delete.
import { SpaceIcon, DeleteIcon } from "icons.slint";
export component KeyboardView inherits Rectangle {
in property <length> u;
in property <length> pane-x;
in property <length> pane-y;
in property <length> pane-w;
in property <length> pane-h;
in property <length> back-x;
in property <length> field-x;
in property <length> field-y;
in property <length> field-w;
in property <length> field-h;
in property <length> row-x;
in property <length> row-y;
in property <length> row-h;
in property <length> key-w;
in property <length> chip-x;
in property <length> chip-y;
in property <length> chip-w;
in property <length> chip-h;
in property <length> chip-step;
in property <[string]> keys;
in property <[string]> chips;
in property <int> mode;
in property <float> pos;
in property <float> cpos;
in property <float> keys-active;
in property <float> chips-active;
in property <string> title;
in property <string> subtitle;
in property <string> shown-text;
in property <string> placeholder;
in property <string> hint;
in property <bool> hint-error;
in property <bool> can-submit;
property <int> n: self.keys.length + 2;
// ---- heading ----------------------------------------------------------
Text {
x: root.pane-x;
y: root.pane-y + 58 * root.u;
width: root.pane-w;
horizontal-alignment: center;
text: root.title;
font-family: "Inter Display";
font-weight: 800;
font-size: 46 * root.u;
letter-spacing: -1.2 * root.u;
color: #ffffff;
overflow: elide;
}
Text {
x: root.pane-x + 80 * root.u;
y: root.pane-y + 128 * root.u;
width: root.pane-w - 160 * root.u;
horizontal-alignment: center;
text: root.subtitle;
font-size: 23 * root.u;
color: #ffffffa8;
overflow: elide;
}
// ---- text field ---------------------------------------------------------
Rectangle {
x: root.field-x;
y: root.field-y;
width: root.field-w;
height: root.field-h;
clip: true;
HorizontalLayout {
padding-left: 36 * root.u;
padding-right: 36 * root.u;
alignment: start;
spacing: 4 * root.u;
if root.shown-text == "": Text {
vertical-alignment: center;
text: root.placeholder;
font-size: 32 * root.u;
color: #ffffff59;
}
if root.shown-text != "": Text {
vertical-alignment: center;
text: root.shown-text;
font-size: 34 * root.u;
font-weight: 500;
letter-spacing: 1 * root.u;
color: #ffffff;
}
// Blinking caret.
Rectangle {
width: 3 * root.u;
Rectangle {
y: (parent.height - self.height) / 2;
width: 100%;
height: 44 * root.u;
border-radius: self.width / 2;
background: #ff9a5c;
opacity: mod(animation-tick() / 1000ms, 1) < 0.55 ? 1 : 0;
}
}
}
}
Text {
x: root.field-x;
y: root.field-y + root.field-h + 18 * root.u;
width: root.field-w;
horizontal-alignment: center;
text: root.hint;
font-size: 21 * root.u;
color: root.hint-error ? #ff8278 : #ffffff8c;
}
// ---- key row ---------------------------------------------------------------
// Keys grow as the focus lens passes them (fish-eye), like on tvOS.
for key[i] in root.keys: Text {
property <float> f: max(0, 1 - abs(root.pos - (i + 1))) * root.keys-active;
x: root.row-x + (i + 1) * root.key-w - 20 * root.u;
y: root.row-y;
width: root.key-w + 40 * root.u;
height: root.row-h;
horizontal-alignment: center;
vertical-alignment: center;
text: key;
font-size: (31 + 17 * self.f) * root.u;
font-weight: self.f > 0.5 ? 700 : 500;
color: self.f > 0.5 ? #121317 : #ffffffd8;
}
SpaceIcon {
property <float> f: max(0, 1 - abs(root.pos)) * root.keys-active;
property <length> size: (30 + 10 * self.f) * root.u;
x: root.row-x + (root.key-w - self.size) / 2;
y: root.row-y + (root.row-h - self.size) / 2;
width: self.size;
height: self.size;
ink: self.f > 0.5 ? #121317 : #ffffffd8;
}
DeleteIcon {
property <float> f: max(0, 1 - abs(root.pos - (root.n - 1))) * root.keys-active;
property <length> size: (32 + 10 * self.f) * root.u;
x: root.row-x + (root.n - 1) * root.key-w + (root.key-w - self.size) / 2;
y: root.row-y + (root.row-h - self.size) / 2;
width: self.size;
height: self.size;
ink: self.f > 0.5 ? #121317 : #ffffffd8;
}
// ---- mode and action chips -------------------------------------------------------
for label[i] in root.chips: Text {
property <float> f: max(0, 1 - abs(root.cpos - i)) * root.chips-active;
property <bool> submit: i == root.chips.length - 1;
property <bool> selected: i < 4 && i == root.mode;
x: root.chip-x + i * root.chip-step;
y: root.chip-y;
width: root.chip-w;
height: root.chip-h;
horizontal-alignment: center;
vertical-alignment: center;
text: label;
font-size: 24 * root.u;
font-weight: self.submit || self.selected ? 700 : 500;
color: self.submit
? (root.can-submit ? #ffffff : #ffffff66)
: self.f > 0.5 ? #121317 : self.selected ? #ff9a5c : #ffffffc8;
}
Text {
x: root.back-x;
y: root.pane-y + root.pane-h - 92 * root.u;
width: 300 * root.u;
height: 56 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
text: "‹ Mégse · Vissza";
font-size: 21 * root.u;
font-weight: 500;
color: #ffffffc0;
}
}

View File

@@ -0,0 +1,318 @@
// 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).
// Pulsing ring that draws the eye to a button.
component Pulse inherits Rectangle {
in property <length> size;
in property <color> tint;
in property <duration> delay;
property <float> phase: mod((animation-tick() + root.delay) / 1400ms, 1);
width: self.size * (1 + 0.9 * self.phase);
height: self.width;
border-radius: self.width / 2;
border-width: 3px;
border-color: root.tint.with-alpha(0.9 * (1 - self.phase));
background: root.tint.with-alpha(0.18 * (1 - self.phase));
}
component RemoteButton inherits Rectangle {
in property <length> u;
in property <string> glyph;
in property <bool> hot;
in property <color> accent;
width: 52 * self.u;
height: self.width;
border-radius: self.width / 2;
background: self.hot ? #2a2a2e : #1b1b1d;
drop-shadow-blur: 3 * self.u;
drop-shadow-color: #00000080;
drop-shadow-offset-y: 1 * self.u;
if root.hot: Pulse {
size: root.width;
tint: root.accent;
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
}
if root.hot: Pulse {
size: root.width;
tint: root.accent;
delay: 700ms;
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;
}
}
// Apple Siri Remote (2nd gen, aluminium), drawn front-on.
export component SiriRemote inherits Rectangle {
in property <length> u;
in property <color> accent;
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%);
drop-shadow-blur: 30 * self.u;
drop-shadow-color: #000000a0;
drop-shadow-offset-y: 16 * self.u;
// Siri button on the right edge.
Rectangle {
x: parent.width - 2 * root.u;
y: 200 * root.u;
width: 5 * root.u;
height: 46 * root.u;
border-radius: 2 * root.u;
background: #8b9097;
}
// Power button.
Rectangle {
x: parent.width - 34 * root.u;
y: 16 * root.u;
width: 18 * root.u;
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;
}
}
// Clickpad: outer touch ring and center.
Rectangle {
x: (parent.width - self.width) / 2;
y: 44 * root.u;
width: 128 * root.u;
height: self.width;
border-radius: self.width / 2;
background: @radial-gradient(circle, #2b2c30 0%, #1a1b1d 100%);
Rectangle {
x: (parent.width - self.width) / 2;
y: (parent.height - self.height) / 2;
width: 64 * root.u;
height: self.width;
border-radius: self.width / 2;
background: #232427;
border-width: 1px;
border-color: #ffffff14;
}
for d in [{ x: 0.5, y: 0.1 }, { x: 0.5, y: 0.9 }, { x: 0.1, y: 0.5 }, { x: 0.9, y: 0.5 }]: Rectangle {
x: parent.width * d.x - 2.5 * root.u;
y: parent.height * d.y - 2.5 * root.u;
width: 5 * root.u;
height: self.width;
border-radius: self.width / 2;
background: #ffffff60;
}
}
// 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: "🔇"; }
// Volume rocker: + is the one to hold.
Rectangle {
x: root.col2;
y: 268 * root.u;
width: 52 * root.u;
height: 120 * root.u;
border-radius: self.width / 2;
background: #1b1b1d;
RemoteButton {
u: root.u;
accent: root.accent;
x: 0;
y: 0;
glyph: "+";
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;
}
}
}
component Step inherits Rectangle {
in property <length> u;
in property <int> n;
in property <string> label;
in property <color> accent;
height: 70 * self.u;
Rectangle {
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;
}
}
Text {
x: 60 * root.u;
y: 10 * root.u;
width: parent.width - 60 * root.u;
text: root.label;
wrap: word-wrap;
font-size: 24 * root.u;
color: #ffffffd8;
}
}
// Pane content; `state` is the remote status from sf-remote.
export component PairingGuide inherits Rectangle {
in property <length> u;
in property <string> state;
in property <color> accent: #ff7a35;
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;
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;
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;
color: #ffffff;
}
Step {
u: root.u;
accent: root.accent;
x: 0;
y: 150 * root.u;
width: parent.width;
n: 1;
label: "Vidd a távirányítót a TV közelébe.";
}
Step {
u: root.u;
accent: root.accent;
x: 0;
y: 226 * root.u;
width: parent.width;
n: 2;
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;
width: parent.width;
n: 3;
label: "Engedd el. A TV magától megtalálja és párosítja.";
}
// Live status.
Rectangle {
x: 0;
y: parent.height - 70 * root.u;
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: "!".
if !root.ok && !root.broken: HorizontalLayout {
x: 26 * root.u;
width: 60 * root.u;
spacing: 8 * root.u;
alignment: start;
for i in 3: Rectangle {
property <float> p: mod((animation-tick() + i * 180ms) / 900ms, 1);
y: (parent.height - self.height) / 2;
width: 10 * root.u;
height: self.width;
border-radius: self.width / 2;
background: root.accent.brighter(0.4);
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;
}
Text {
x: 92 * root.u;
width: parent.width - 110 * 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!"
: root.broken ? "Nem található Bluetooth adapter"
: root.state == "pairing" ? "Párosítás…"
: "Távirányító keresése…";
}
}
Text {
x: 556 * root.u;
y: parent.height - 68 * root.u;
width: 204 * root.u;
height: 60 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
text: "Kihagyás · Esc";
font-size: 21 * root.u;
font-weight: 500;
color: #ffffffc0;
}
}
}

View File

@@ -0,0 +1,210 @@
// Settings screen: categories on the left, rows on the right.
//
// Only text and icons are drawn here. The glass (pane, rows, chips) comes from
// `settings_screen::glass` in Rust, which mirrors the geometry below: keep the
// row/nav formulas (position, focus `f`, visibility `vis`) in sync with it.
import { WifiIcon, BluetoothIcon, InfoIcon, DisplayIcon, PowerIcon, SignalIcon, LockIcon } from "icons.slint";
export struct SettingRow {
title: string,
value: string,
detail: string,
// info | choice | device | action | danger | option | network
kind: string,
// network rows: signal bars (1-4) and a lock for protected networks
level: int,
lock: bool,
}
component NavIcon inherits Rectangle {
in property <int> index;
in property <color> ink;
if root.index == 0: DisplayIcon { width: 100%; height: 100%; ink: root.ink; }
if root.index == 1: BluetoothIcon { width: 100%; height: 100%; ink: root.ink; }
if root.index == 2: WifiIcon { width: 100%; height: 100%; ink: root.ink; }
if root.index == 3: PowerIcon { width: 100%; height: 100%; ink: root.ink; }
if root.index == 4: InfoIcon { width: 100%; height: 100%; ink: root.ink; }
}
export component SettingsView inherits Rectangle {
in property <length> u;
in property <length> pane-x;
in property <length> pane-y;
in property <length> pane-h;
in property <length> nav-x;
in property <length> nav-y;
in property <length> nav-w;
in property <length> nav-h;
in property <length> nav-step;
in property <length> rows-x;
in property <length> rows-y;
in property <length> rows-w;
in property <length> row-h;
in property <length> row-step;
in property <length> rows-view-h;
in property <length> rows-scroll;
in property <float> nav-pos;
in property <float> nav-active;
in property <float> row-pos;
in property <float> content-active;
in property <string> title;
in property <string> subtitle;
in property <[SettingRow]> rows;
in property <[string]> categories;
// ---- left column ----------------------------------------------------
Text {
x: root.nav-x + 8 * root.u;
y: root.pane-y + 50 * root.u;
text: "Beállítások";
font-family: "Inter Display";
font-weight: 800;
font-size: 50 * root.u;
letter-spacing: -1.5 * root.u;
color: #ffffff;
}
for name[i] in root.categories: Rectangle {
property <float> f: max(0, 1 - abs(root.nav-pos - i)) * root.nav-active;
property <float> sel: max(0, 1 - abs(root.nav-pos - i));
property <color> ink: self.f > 0.5 ? #121317 : #ffffff.with-alpha(0.72 + 0.28 * self.sel);
x: root.nav-x;
y: root.nav-y + i * root.nav-step;
width: root.nav-w;
height: root.nav-h;
NavIcon {
x: 28 * root.u;
y: (parent.height - self.height) / 2;
width: 34 * root.u;
height: 34 * root.u;
index: i;
ink: parent.ink;
}
Text {
x: 82 * root.u;
width: parent.width - 100 * root.u;
height: parent.height;
vertical-alignment: center;
text: name;
font-size: 26 * root.u;
font-weight: 600;
color: parent.ink;
overflow: elide;
}
}
Text {
x: root.nav-x;
y: root.pane-y + root.pane-h - 92 * root.u;
width: 300 * root.u;
height: 56 * root.u;
horizontal-alignment: center;
vertical-alignment: center;
text: "‹ Vissza · Esc";
font-size: 21 * root.u;
font-weight: 500;
color: #ffffffc0;
}
// ---- right column ---------------------------------------------------
Text {
x: root.rows-x + 8 * root.u;
y: root.pane-y + 44 * root.u;
width: root.rows-w - 16 * root.u;
text: root.title;
font-family: "Inter Display";
font-weight: 800;
font-size: 40 * root.u;
letter-spacing: -1 * root.u;
color: #ffffff;
overflow: elide;
}
Text {
x: root.rows-x + 8 * root.u;
y: root.pane-y + 102 * root.u;
width: root.rows-w - 16 * root.u;
height: 64 * root.u;
text: root.subtitle;
wrap: word-wrap;
overflow: elide;
font-size: 21 * root.u;
color: #ffffffa8;
}
for row[j] in root.rows: r := Rectangle {
property <float> f: max(0, 1 - abs(root.row-pos - j)) * root.content-active;
property <length> top: root.rows-y + j * root.row-step - root.rows-scroll;
property <float> over: max(root.rows-y - self.top, self.top + root.row-h - (root.rows-y + root.rows-view-h)) / root.row-h;
property <float> vis: clamp(1 - self.over, 0, 1);
property <bool> hot: self.f > 0.5;
property <bool> danger: row.kind == "danger";
property <color> ink: self.hot ? (self.danger ? #ffffff : #121317) : (self.danger ? #ff8278 : #ffffff);
property <color> ink-dim: self.hot ? (self.danger ? #ffffffd0 : #121317b0) : #ffffff99;
property <bool> chevron: row.kind == "choice" || row.kind == "device";
property <bool> network: row.kind == "network";
x: root.rows-x;
y: self.top;
width: root.rows-w;
height: root.row-h;
opacity: self.vis;
visible: self.vis > 0.01;
Text {
x: 30 * root.u;
y: row.detail == "" ? (parent.height - self.height) / 2 : 15 * root.u;
width: parent.width * 0.55;
text: row.title;
font-size: 26 * root.u;
font-weight: 600;
color: r.ink;
overflow: elide;
}
if row.detail != "": Text {
x: 30 * root.u;
y: 51 * root.u;
width: parent.width * 0.55;
text: row.detail;
font-size: 19 * root.u;
color: r.ink-dim;
overflow: elide;
}
Text {
x: parent.width * 0.4;
width: parent.width * 0.6 - (r.network ? 124 : r.chevron ? 64 : 32) * root.u;
height: parent.height;
horizontal-alignment: right;
vertical-alignment: center;
text: row.value;
font-size: row.kind == "option" ? 30 * root.u : 23 * root.u;
font-weight: row.kind == "option" ? 700 : 400;
color: row.kind == "option" ? (r.hot ? #121317 : #ff9a5c) : r.ink-dim;
overflow: elide;
}
if r.chevron: Text {
x: parent.width - 50 * root.u;
width: 24 * root.u;
height: parent.height;
vertical-alignment: center;
text: "›";
font-size: 36 * root.u;
color: r.ink-dim;
}
// Wi-Fi network: lock (protected) and signal strength on the right.
if r.network && row.lock: LockIcon {
x: parent.width - 104 * root.u;
y: (parent.height - self.height) / 2;
width: 24 * root.u;
height: 24 * root.u;
ink: r.ink-dim;
}
if r.network: SignalIcon {
x: parent.width - 66 * root.u;
y: (parent.height - self.height) / 2;
width: 34 * root.u;
height: 34 * root.u;
level: row.level;
ink: r.ink;
}
}
}