Own config name composed by deploy.sh from our files + pristine-ii dir borrows; ii tree stays untouched. One SouveraineFamily, two modes gated on souveraine.phone. Three guarded IPC surfaces for the agent (via Souveraine's harness, not a new integration): dock.manifest/pin/unpin/restack, shell.surfaces/state (layer registry, live-derived), apps.list/get/find/categories (.desktop scan). Refusals are result shapes, not errors. Settings app split into per-domain pages (Device/Lock/Dock/Pill/Keyboard). Config backports (background.widgets, claudeUsage, fileSearch) kill the laptop TypeErrors.
44 lines
1.5 KiB
QML
44 lines
1.5 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
|
|
// Device — Souveraine form-factor and (later) per-device overrides.
|
|
// Principle: pages are views over Config.options / the owning daemon;
|
|
// nothing app-private. This page holds the knobs that describe WHAT this
|
|
// device is, so behaviors elsewhere gate on config, not hardcoded checks.
|
|
|
|
ContentPage {
|
|
forceWidth: true
|
|
|
|
ContentSection {
|
|
icon: "smartphone"
|
|
title: Translation.tr("Form factor")
|
|
|
|
ConfigSwitch {
|
|
buttonIcon: "smartphone"
|
|
text: Translation.tr("Phone mode")
|
|
checked: Config.options.souveraine.phone
|
|
onCheckedChanged: {
|
|
Config.options.souveraine.phone = checked;
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("Gates phone behaviors: OSK rises for polkit prompts, phone-only pages, single-column layouts. Laptop deploys leave this off.")
|
|
}
|
|
}
|
|
}
|
|
|
|
ContentSection {
|
|
icon: "tune"
|
|
title: Translation.tr("Device overrides")
|
|
|
|
StyledText {
|
|
Layout.fillWidth: true
|
|
text: Translation.tr("Per-device profile overrides (panel size, sensor set, feel presets) land here as the framework grows. One config tree, many devices.")
|
|
color: Appearance.colors.colSubtext
|
|
font.pixelSize: Appearance.font.pixelSize.smaller
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
}
|
|
}
|