summaryrefslogtreecommitdiff
path: root/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml
diff options
context:
space:
mode:
authorAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
committerAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
commit70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch)
treeab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml
parent5d94c0a7d44a2255b81815a52a7056a94a39842d (diff)
downloadRaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz
RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml')
-rw-r--r--raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml138
1 files changed, 0 insertions, 138 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml
deleted file mode 100644
index 7d61900..0000000
--- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/PLUGINS/ControlCenterDetailExample/DetailExampleWidget.qml
+++ /dev/null
@@ -1,138 +0,0 @@
-import QtQuick
-import QtQuick.Controls
-import Quickshell
-import qs.Common
-import qs.Services
-import qs.Widgets
-import qs.Modules.Plugins
-
-PluginComponent {
- id: root
-
- property bool isEnabled: pluginData.isEnabled || false
- property var options: pluginData.options || ["Option A", "Option B", "Option C"]
-
- ccWidgetIcon: isEnabled ? "settings" : "settings"
- ccWidgetPrimaryText: "Detail Example"
- ccWidgetSecondaryText: {
- if (isEnabled) {
- const selected = pluginData.selectedOption || "Option A"
- return selected
- }
- return "Disabled"
- }
- ccWidgetIsActive: isEnabled
-
- onCcWidgetToggled: {
- isEnabled = !isEnabled
- if (pluginService) {
- pluginService.savePluginData("controlCenterDetailExample", "isEnabled", isEnabled)
- }
- }
-
- ccDetailContent: Component {
- Rectangle {
- id: detailRoot
- implicitHeight: detailColumn.implicitHeight + Theme.spacingM * 2
- radius: Theme.cornerRadius
- color: Theme.surfaceContainerHigh
- border.width: 0
- visible: true
-
- property var options: ["Option A", "Option B", "Option C"]
- property string currentSelection: SettingsData.getPluginSetting("controlCenterDetailExample", "selectedOption", "Option A")
-
- Column {
- id: detailColumn
- anchors.fill: parent
- anchors.margins: Theme.spacingM
- spacing: Theme.spacingS
-
- StyledText {
- text: "Detail Example Settings"
- font.pixelSize: Theme.fontSizeLarge
- color: Theme.surfaceText
- font.weight: Font.Medium
- }
-
- StyledText {
- text: "Select an option below:"
- font.pixelSize: Theme.fontSizeSmall
- color: Theme.surfaceVariantText
- }
-
- Repeater {
- model: detailRoot.options
-
- Rectangle {
- width: parent.width
- height: 40
- radius: Theme.cornerRadius
- color: optionMouseArea.containsMouse ? Theme.surfaceContainerHighest : "transparent"
- border.color: detailRoot.currentSelection === modelData ? Theme.primary : "transparent"
- border.width: detailRoot.currentSelection === modelData ? 2 : 0
-
- MouseArea {
- id: optionMouseArea
- anchors.fill: parent
- hoverEnabled: true
- cursorShape: Qt.PointingHandCursor
- z: 100
- onClicked: {
- SettingsData.setPluginSetting("controlCenterDetailExample", "selectedOption", modelData)
- detailRoot.currentSelection = modelData
- PluginService.pluginDataChanged("controlCenterDetailExample")
- ToastService.showInfo("Option Selected", modelData)
- }
- }
-
- Row {
- anchors.fill: parent
- anchors.leftMargin: Theme.spacingM
- anchors.rightMargin: Theme.spacingM
- spacing: Theme.spacingS
- enabled: false
-
- DankIcon {
- name: detailRoot.currentSelection === modelData ? "radio_button_checked" : "radio_button_unchecked"
- color: detailRoot.currentSelection === modelData ? Theme.primary : Theme.surfaceVariantText
- size: Theme.iconSize
- anchors.verticalCenter: parent.verticalCenter
- }
-
- StyledText {
- text: modelData
- color: detailRoot.currentSelection === modelData ? Theme.primary : Theme.surfaceText
- font.pixelSize: Theme.fontSizeMedium
- anchors.verticalCenter: parent.verticalCenter
- }
- }
- }
- }
- }
- }
- }
-
- horizontalBarPill: Component {
- Row {
- spacing: Theme.spacingXS
-
- DankIcon {
- name: root.isEnabled ? "settings" : "settings_off"
- color: root.isEnabled ? Theme.primary : Theme.surfaceVariantText
- font.pixelSize: Theme.iconSize - 4
- anchors.verticalCenter: parent.verticalCenter
- }
-
- StyledText {
- text: {
- const selected = root.pluginData.selectedOption || "Option A"
- return selected.substring(0, 1)
- }
- color: root.isEnabled ? Theme.primary : Theme.surfaceVariantText
- font.pixelSize: Theme.fontSizeMedium
- anchors.verticalCenter: parent.verticalCenter
- }
- }
- }
-}