Files
os/crates/sf-launcher/ui/icons.slint
Tamas Csikel deedf1416a Split the apps and the SDK out of Fennec OS
The apps are developed apart from the OS now, each in its own repo under
gitea.bluefox.support/fennec:
- sdk: sf-app (the app contract: manifest, permissions, store rules,
  sandbox, launch; from sf-ipc), sf-ui, sf-pack, the app template, the
  developer guide. The OS depends on it by tag (v0.1.0).
- youtube, steam: store apps. netflex (native) replaces the Netflex web app.
- store: the Fennec catalog, the store source a new TV starts with.

This repo keeps the OS and its own apps (Settings, App Store, AirPlay,
Miracast). sf-ipc re-exports sf-app, so OS code is mostly unchanged.

- Store apps may register for DIAL (the `dial` permission); an official
  app with the same DIAL name wins.
- Built-in icon names are for official apps only.
- The image installs the catalog apps at build time (factory-store.toml,
  sf-update store in mkosi.postinst.chroot). Steam's system part stays in
  the image: 32-bit libraries, controller udev rules (from Valve's apt
  repo), Valve's key.
- Older TVs move over by themselves: sf-update adds the replacements to
  store.toml once, the old factory app stays until its replacement is
  installed, YouTube's and Steam's data folders move to the new ids, and
  the old sf-app-<id> packages are not installed any more.

Shell 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:58:21 +01:00

565 lines
18 KiB
Plaintext

// Vector icons (32x32 viewbox). Brand marks are simplified, original drawings.
export component AppIcon inherits Rectangle {
in property <string> icon;
in property <color> ink: #ffffff;
// Store apps bring their own picture (app.toml: icon = "icon.png").
in property <image> image;
in property <bool> has-image: false;
// No picture and no built-in icon: the app name's first letter.
in property <string> letter;
property <bool> builtin: root.icon == "airplay" || root.icon == "miracast" || root.icon == "settings" || root.icon == "store";
if root.has-image: Image {
width: 100%;
height: 100%;
source: root.image;
image-fit: contain;
}
if !root.has-image && !root.builtin: Text {
width: 100%;
height: 100%;
horizontal-alignment: center;
vertical-alignment: center;
text: root.letter;
font-size: root.height * 0.72;
font-weight: 700;
color: root.ink;
}
if root.icon == "store": Rectangle {
// App Store: a shopping bag with a handle.
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M6.5 11h19l-1.4 15a2.5 2.5 0 0 1-2.5 2.3H10.4a2.5 2.5 0 0 1-2.5-2.3z";
fill: @linear-gradient(180deg, #8cc4ff 0%, #3d7fe0 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M11.5 14V9.5a4.5 4.5 0 0 1 9 0V14";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
}
}
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%);
}
}
}
// Fennec OS 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;
}
}
export component AudioIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M5 12h6l7-6v20l-7-6H5zM22 12a6 6 0 0 1 0 8M25 8a11 11 0 0 1 0 16";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
// Siri Remote, front view (status capsule, facts).
export component RemoteIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M12.5 3h7a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-join: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M12.6 10.5a3.4 3.4 0 1 0 6.8 0a3.4 3.4 0 1 0-6.8 0zM13.5 18.5a1.3 1.3 0 1 0 2.6 0a1.3 1.3 0 1 0-2.6 0zM15.9 18.5a1.3 1.3 0 1 0 2.6 0a1.3 1.3 0 1 0-2.6 0z";
fill: root.ink;
}
}
// Wired network (ethernet plug).
export component WiredIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9 6h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-3v4h-8v-4H9a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zM16 23v5M12.5 10.5v3M16 10.5v3M19.5 10.5v3";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
// Cast from a phone: screen with broadcast arcs in the corner.
export component CastIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M4 11V8.5A2.5 2.5 0 0 1 6.5 6h19A2.5 2.5 0 0 1 28 8.5v15a2.5 2.5 0 0 1-2.5 2.5H17M4 16.5a9.5 9.5 0 0 1 9.5 9.5M4 21.5a4.5 4.5 0 0 1 4.5 4.5";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M3 26a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0z";
fill: root.ink;
}
}
// Home media server.
export component ServerIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M7 5h18a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM7 18h18a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2z";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-join: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M9.5 9.5a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0-2.8 0zM9.5 22.5a1.4 1.4 0 1 0 2.8 0a1.4 1.4 0 1 0-2.8 0z";
fill: root.ink;
}
}
export component CheckIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M7 16.5l6 6L25.5 10";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component AlertIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M16 8v10";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14.2 24a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0z";
fill: root.ink;
}
}
export component ChevronIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M12 7l9 9-9 9";
stroke: root.ink;
stroke-width: 2.6px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
// Remote buttons in the pairing drawing.
export component BackGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19 8l-8 8 8 8";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component TvGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M7.5 8h17a1.5 1.5 0 0 1 1.5 1.5v11a1.5 1.5 0 0 1-1.5 1.5h-17A1.5 1.5 0 0 1 6 20.5v-11A1.5 1.5 0 0 1 7.5 8zM12 25.5h8";
stroke: root.ink;
stroke-width: 2.6px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component PlayPauseGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M6 9.5v13l9-6.5z";
fill: root.ink;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19.5 10v12M25 10v12";
stroke: root.ink;
stroke-width: 2.8px;
stroke-line-cap: round;
}
}
export component MuteGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M5 12.5h4.5L16 7v18l-6.5-5.5H5z";
fill: root.ink;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M20.5 12.5l7 7M27.5 12.5l-7 7";
stroke: root.ink;
stroke-width: 2.6px;
stroke-line-cap: round;
}
}
export component PlusGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M16 8v16M8 16h16";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
}
}
export component MinusGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M8 16h16";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
}
}
export component PowerGlyph inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M10.3 9.6a9 9 0 1 0 11.4 0M16 5.5v10";
stroke: root.ink;
stroke-width: 3px;
stroke-line-cap: round;
}
}
// One icon by name, for data-driven rows (home screen facts).
export component NamedIcon inherits Rectangle {
in property <string> name;
in property <color> ink: #ffffff;
if root.name == "remote": RemoteIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "wifi": WifiIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "wired": WiredIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "display": DisplayIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "cast": CastIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "server": ServerIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "check": CheckIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "alert": AlertIcon { width: 100%; height: 100%; ink: root.ink; }
if root.name == "bluetooth": BluetoothIcon { width: 100%; height: 100%; ink: root.ink; }
}
// Store screen categories (settings.slint NavIcon 5..7).
export component StoreIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M6.5 11h19l-1.4 15a2.5 2.5 0 0 1-2.5 2.3H10.4a2.5 2.5 0 0 1-2.5-2.3zM11.5 14V9.5a4.5 4.5 0 0 1 9 0V14";
stroke: root.ink;
stroke-width: 2.2px;
stroke-line-cap: round;
stroke-line-join: round;
}
}
export component LinkIcon inherits Rectangle {
in property <color> ink: #ffffff;
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M14 18a5 5 0 0 0 7.1 0l4-4a5 5 0 0 0-7.1-7.1l-1.5 1.5M18 14a5 5 0 0 0-7.1 0l-4 4a5 5 0 0 0 7.1 7.1l1.5-1.5";
stroke: root.ink;
stroke-width: 2.4px;
stroke-line-cap: round;
stroke-line-join: round;
}
}