phoebus_os/installer/live/desktop/common/Theme.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

45 lines
1.7 KiB
Bash

pragma Singleton
import QtQuick
// Phoebus brand tokens. Kept in sync with phoebus_core::brand::PALETTE by a
// Rust test, so the QML frontend and the backend cannot drift.
QtObject {
id: theme
// Palette: charcoal, warm white, restrained amber.
readonly property color charcoal: "#17171b"
readonly property color surface: "#232329"
readonly property color surfaceRaised: "#2b2b33"
readonly property color border: "#3a3a42"
readonly property color warmWhite: "#f4efe6"
readonly property color muted: "#a8a29a"
readonly property color amber: "#e8a33d"
readonly property color amberDeep: "#c97f24"
readonly property color success: "#7fb069"
readonly property color warning: "#e0a24a"
readonly property color danger: "#d2564b"
readonly property color focusRing: amber
readonly property color overlay: Qt.rgba(0.09, 0.09, 0.10, 0.72)
// Layout.
readonly property int radius: 12
readonly property int radiusSmall: 8
readonly property int gutter: 20
readonly property int pad: 16
readonly property int padLarge: 28
// Type scale.
readonly property int fontDisplay: 30
readonly property int fontTitle: 22
readonly property int fontHeading: 17
readonly property int fontBody: 14
readonly property int fontSmall: 12
readonly property string family: "DejaVu Sans, Noto Sans, sans-serif"
// Branding assets installed by the live build.
readonly property string brandDir: "/usr/share/phoebus/branding"
readonly property string emblem: brandDir + "/emblem.svg"
readonly property string wordmark: brandDir + "/wordmark.svg"
readonly property string wallpaper: brandDir + "/wallpaper.svg"
}