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
        }
    }
}
