summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-11 11:44:47 -0500
committerATMDA <atdma2600@gmail.com>2025-11-11 11:44:47 -0500
commitd2c5065aa9fe39e5a9bbbc96e1882dcb73acdab2 (patch)
tree3e237d2440d5af2f1155a2a6466e59b8a856dcd8
parentcontrolcenter: launcher panel, can hide/show applications (diff)
downloadcaelestia-shell-d2c5065aa9fe39e5a9bbbc96e1882dcb73acdab2.tar.gz
caelestia-shell-d2c5065aa9fe39e5a9bbbc96e1882dcb73acdab2.tar.bz2
caelestia-shell-d2c5065aa9fe39e5a9bbbc96e1882dcb73acdab2.zip
controlcenter: added debug toggle to taskbar objects
-rw-r--r--modules/controlcenter/taskbar/TaskbarPane.qml37
1 files changed, 36 insertions, 1 deletions
diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml
index a367635..7ada7b1 100644
--- a/modules/controlcenter/taskbar/TaskbarPane.qml
+++ b/modules/controlcenter/taskbar/TaskbarPane.qml
@@ -18,6 +18,8 @@ RowLayout {
required property Session session
+ property bool showDebugInfo: false
+
anchors.fill: parent
spacing: 0
@@ -98,7 +100,6 @@ RowLayout {
}
debugInfo += `\nFinal entries array:\n${JSON.stringify(config.bar.entries, null, 2)}\n`;
- debugInfo += `\nFinal clock.showIcon: ${config.bar.clock.showIcon}\n`;
root.debugInfo = debugInfo;
// Write back to file using setText (same simple approach that worked for clock)
@@ -338,9 +339,41 @@ RowLayout {
color: Colours.palette.m3outline
}
+ StyledRect {
+ Layout.fillWidth: true
+ Layout.topMargin: Appearance.spacing.large
+ implicitHeight: debugToggleRow.implicitHeight + Appearance.padding.large * 2
+ color: Colours.tPalette.m3surfaceContainer
+ radius: Appearance.rounding.normal
+
+ RowLayout {
+ id: debugToggleRow
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.margins: Appearance.padding.large
+ spacing: Appearance.spacing.normal
+
+ StyledText {
+ Layout.fillWidth: true
+ text: qsTr("Show debug information")
+ font.pointSize: Appearance.font.size.normal
+ }
+
+ StyledSwitch {
+ id: showDebugInfoSwitch
+ checked: root.showDebugInfo
+ onToggled: {
+ root.showDebugInfo = checked;
+ }
+ }
+ }
+ }
+
StyledText {
Layout.topMargin: Appearance.spacing.large
Layout.alignment: Qt.AlignHCenter
+ visible: root.showDebugInfo
text: qsTr("Debug Info")
font.pointSize: Appearance.font.size.larger
font.weight: 500
@@ -350,6 +383,7 @@ RowLayout {
Layout.fillWidth: true
Layout.preferredHeight: 200
Layout.maximumHeight: 300
+ visible: root.showDebugInfo
radius: Appearance.rounding.normal
color: Colours.tPalette.m3surfaceContainer
@@ -387,6 +421,7 @@ RowLayout {
StyledText {
Layout.topMargin: Appearance.spacing.small
Layout.alignment: Qt.AlignHCenter
+ visible: root.showDebugInfo
text: root.lastSaveStatus || ""
font.pointSize: Appearance.font.size.small
color: root.lastSaveStatus.includes("Error") ? Colours.palette.m3error : Colours.palette.m3primary