summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
committerNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
commita2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch)
tree1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml
parent34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff)
downloadRaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz
RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml130
1 files changed, 0 insertions, 130 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml
deleted file mode 100644
index 0ed0e59..0000000
--- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankCollapsibleSection.qml
+++ /dev/null
@@ -1,130 +0,0 @@
-import QtQuick
-import QtQuick.Layouts
-import qs.Common
-import qs.Widgets
-
-ColumnLayout {
- id: root
-
- required property string title
- property string description: ""
- property bool expanded: false
- property bool showBackground: false
- property alias headerColor: headerRect.color
-
- signal toggleRequested
-
- spacing: Theme.spacingS
- Layout.fillWidth: true
-
- Rectangle {
- id: headerRect
- Layout.fillWidth: true
- Layout.preferredHeight: Math.max(titleRow.implicitHeight + Theme.paddingM * 2, 48)
- radius: Theme.cornerRadius
- color: "transparent"
-
- RowLayout {
- id: titleRow
- anchors.fill: parent
- anchors.leftMargin: Theme.paddingM
- anchors.rightMargin: Theme.paddingM
- spacing: Theme.spacingM
-
- StyledText {
- text: root.title
- font.pixelSize: Theme.fontSizeLarge
- font.weight: Font.Medium
- Layout.fillWidth: true
- }
-
- DankIcon {
- name: "expand_more"
- size: Theme.iconSizeSmall
- rotation: root.expanded ? 180 : 0
-
- Behavior on rotation {
- enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
- DankAnim {
- duration: Theme.shortDuration
- easing.bezierCurve: Theme.expressiveCurves.standard
- }
- }
- }
- }
-
- StateLayer {
- anchors.fill: parent
- onClicked: {
- root.toggleRequested();
- root.expanded = !root.expanded;
- }
- }
- }
-
- default property alias content: contentColumn.data
-
- Item {
- id: contentWrapper
- Layout.fillWidth: true
- Layout.preferredHeight: root.expanded ? (contentColumn.implicitHeight + Theme.spacingS * 2) : 0
- clip: true
-
- Behavior on Layout.preferredHeight {
- enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
- DankAnim {
- duration: Theme.expressiveDurations.expressiveDefaultSpatial
- easing.bezierCurve: Theme.expressiveCurves.standard
- }
- }
-
- Rectangle {
- id: backgroundRect
- anchors.fill: parent
- radius: Theme.cornerRadius
- color: Theme.surfaceContainer
- opacity: root.showBackground && root.expanded ? 1.0 : 0.0
- visible: root.showBackground
-
- Behavior on opacity {
- enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
- DankAnim {
- duration: Theme.shortDuration
- easing.bezierCurve: Theme.expressiveCurves.standard
- }
- }
- }
-
- ColumnLayout {
- id: contentColumn
- anchors.left: parent.left
- anchors.right: parent.right
- y: Theme.spacingS
- anchors.leftMargin: Theme.paddingM
- anchors.rightMargin: Theme.paddingM
- anchors.bottomMargin: Theme.spacingS
- spacing: Theme.spacingS
- opacity: root.expanded ? 1.0 : 0.0
-
- Behavior on opacity {
- enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
- DankAnim {
- duration: Theme.shortDuration
- easing.bezierCurve: Theme.expressiveCurves.standard
- }
- }
-
- StyledText {
- id: descriptionText
- Layout.fillWidth: true
- Layout.topMargin: root.description !== "" ? Theme.spacingXS : 0
- Layout.bottomMargin: root.description !== "" ? Theme.spacingS : 0
- visible: root.description !== ""
- text: root.description
- color: Theme.surfaceTextSecondary
- font.pixelSize: Theme.fontSizeSmall
- wrapMode: Text.Wrap
- }
- }
- }
-}