phoebus_os/installer/live/desktop/common/PhoebusEmblem.qml
Phoebus 7e9fa9c2a3
Some checks are pending
ci / test (push) Waiting to run
feat(installer): graphical welcome and install wizard over a typed bridge
Add a branded live welcome window and a Quickshell/QML installer frontend
over a narrow, fail-closed JSON bridge (phoebus-installer --gui-bridge)
that reuses the same InstallConfig, plan, validation, authorization and
staged executor as the TUI/CLI. Add the Phoebus brand system (emblem,
wordmark, wallpaper, tokens), suppress DMS first-run dialogs on the live
medium, identify the live medium as protected, make the installer
shortcut live-only, and fix the installed boot default so systemd-boot
never selects the recovery entry.

Verified in a disposable graphical VM (welcome/installer journey,
duplicate prevention, keyboard navigation, blocked AI prerequisite) plus
a real non-interactive install and detached boot (INSTALL-RC=0,
NO_SECRET_LEAK, systemd running, 0 failed units, LUKS2, Btrfs, network).
2026-09-21 13:13:40 -07:00

62 lines
2 KiB
Bash

import QtQuick
// The Phoebus sun emblem, drawn with Canvas so it never depends on an SVG
// image plugin. The installed vector is still emitted for the desktop and
// boot surfaces; this is the in-app rendering.
Item {
id: emblem
property color accent: Theme.amber
property color core: Theme.warmWhite
implicitWidth: 128
implicitHeight: 128
onAccentChanged: canvas.requestPaint()
onCoreChanged: canvas.requestPaint()
Canvas {
id: canvas
anchors.fill: parent
onWidthChanged: requestPaint()
onHeightChanged: requestPaint()
Component.onCompleted: requestPaint()
onPaint: {
const ctx = getContext("2d");
ctx.reset();
const w = width;
const h = height;
const cx = w / 2;
const cy = h / 2;
const r = Math.min(w, h) / 2;
const rays = 8;
ctx.lineCap = "round";
ctx.strokeStyle = emblem.accent;
ctx.fillStyle = emblem.accent;
ctx.lineWidth = r * 0.09;
for (let i = 0; i < rays; i++) {
const a = i * (Math.PI * 2 / rays);
ctx.beginPath();
ctx.moveTo(cx + Math.cos(a) * r * 0.62, cy + Math.sin(a) * r * 0.62);
ctx.lineTo(cx + Math.cos(a) * r * 0.92, cy + Math.sin(a) * r * 0.92);
ctx.stroke();
}
ctx.lineWidth = r * 0.06;
for (let j = 0; j < rays; j++) {
const a = (j + 0.5) * (Math.PI * 2 / rays);
ctx.beginPath();
ctx.moveTo(cx + Math.cos(a) * r * 0.66, cy + Math.sin(a) * r * 0.66);
ctx.lineTo(cx + Math.cos(a) * r * 0.84, cy + Math.sin(a) * r * 0.84);
ctx.stroke();
}
ctx.beginPath();
ctx.arc(cx, cy, r * 0.40, 0, Math.PI * 2);
ctx.fill();
ctx.beginPath();
ctx.arc(cx, cy, r * 0.25, 0, Math.PI * 2);
ctx.fillStyle = emblem.core;
ctx.fill();
}
}
}