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

43 lines
1.1 KiB
QML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ".."
import "../../core"
import "../../services"
import "../../theme"
// Live throughput. 1×1 shows just the two rates.
CCTile {
id: root
readonly property string down: "↓ " + MetricsService.bytes(MetricsService.network.download) + "/s"
readonly property string up: "↑ " + MetricsService.bytes(MetricsService.network.upload) + "/s"
objectName: "networkTile"
title: "Network"
detail: down + " " + up
page: "network"
glyph: "󰛳"
fallback: "N"
round: false
compactGlyph: false
onClicked: ShellState.openSettings("metrics")
Demand {
service: MetricsService
}
ColumnLayout {
visible: root.compact
anchors.centerIn: parent
spacing: 2
Repeater {
model: [root.down, root.up]
Text {
required property string modelData
text: modelData
color: Theme.text
font.pixelSize: 10
font.weight: Font.DemiBold
Layout.alignment: Qt.AlignHCenter
}
}
}
}