phoebus_os/installer/live/desktop/common/Theme.qml
Phoebus 34c12d3dd8 feat(installer): rebuild the graphical journey and fix interaction defects
Rework the graphical installer into a fixed first-time-user sequence
(Welcome, Language and keyboard, Internet and readiness, AI connection,
Destination disk, Account and encryption, Review and confirmation,
Installation, Completion) with configuration, validation, plans, approval
and execution still authoritative in Rust.

Fix the audited interaction defects: readiness `Re-check` is a read-only
probe that no longer resets the step or clears the disk; model catalogs are
fetched after syncing the edited settings and credentials and stale replies
are ignored; editing a connection field invalidates the validated state;
suggestion lists support arrow/Enter/Escape with a visible highlight and
accessibility; the keyboard step labels the live-session limitation
truthfully; readiness separates the local link from reachable install
services; and busy states always clear, with the bridge failing outstanding
requests when the backend exits.

Add human-readable language/keyboard names, an explicit AI change review
(Accept/Discard), backend-fact review with edit links, real stage progress
with elapsed time and activity, and clearer failure and completion guidance.

Extend the VM harness with a `gui-install` mode that drives the whole
journey through the visible controls, plus regressions for readiness
refresh, disk survival, keyboard suggestion selection and AI invalidation.
Add Rust tests for readiness, the network probe, error kinds and labels.
2026-09-22 08:17:03 -07:00

60 lines
2.5 KiB
Bash

pragma Singleton
import QtQuick
import Quickshell
// 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)
// Text scale. `PHOEBUS_UI_SCALE` lets a display or accessibility setup
// enlarge everything; the content areas scroll, so a larger scale still
// fits at 1024x768.
readonly property real scale: {
const value = parseFloat(Quickshell.env("PHOEBUS_UI_SCALE"));
return (isNaN(value) || value < 0.5 || value > 4) ? 1.0 : value;
}
// 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
// Control sizing follows the text scale so labels never clip.
readonly property int controlHeight: Math.round(42 * scale)
readonly property int controlHeightLarge: Math.round(46 * scale)
readonly property int controlHeightCompact: Math.round(34 * scale)
readonly property int rowHeight: Math.round(30 * scale)
// Type scale.
readonly property int fontDisplay: Math.round(30 * scale)
readonly property int fontTitle: Math.round(22 * scale)
readonly property int fontHeading: Math.round(17 * scale)
readonly property int fontBody: Math.round(14 * scale)
readonly property int fontSmall: Math.round(12 * scale)
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"
}