Files
mxandClaude Opus 5.5 11bdc4c751 Lay the Control Center out as a resizable, editable grid
Modules are tiles on a 4-column grid, each 1x1 to 4x4 and adapting its
layout to its size. Edit Controls in the panel reorders by dragging,
resizes from a corner handle, removes with a badge and adds from a tray.
Connectivity splits into Wi-Fi, Bluetooth and Network tiles and Audio
into Sound and Microphone; right-clicking Sound extends it with output
devices and a volume slider per app. Adds a Caffeine tile. Config
version 2 migrates existing layouts in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 20:52:14 +02:00

26 lines
1.0 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick
import ".."
import "../../services"
// Clicking cycles through the available power profiles.
CCTile {
id: root
readonly property var info: SystemService.state.profiles || ({
available: false,
profiles: []
})
readonly property var profiles: info.profiles || []
readonly property string current: info.current || ""
objectName: "profileTile"
title: "Power profile"
detail: !info.available ? "Unavailable" : current ? current.charAt(0).toUpperCase() + current.slice(1).replace(/-/g, " ") : "—"
glyph: current === "power-saver" ? "󰌪" : current === "performance" ? "󰓅" : "󰾅"
page: "power"
fallback: "P"
checked: info.available && current !== "" && current !== "balanced"
enabled: !!info.available && profiles.length > 1 && !SystemService.acting
onClicked: SystemService.action("profile", profiles[(profiles.indexOf(current) + 1) % profiles.length], false)
Accessible.name: "Power profile: " + detail
}