diff options
| author | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
|---|---|---|
| committer | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
| commit | 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch) | |
| tree | ab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StateLayer.qml | |
| parent | 5d94c0a7d44a2255b81815a52a7056a94a39842d (diff) | |
| download | RaveOS-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/Widgets/StateLayer.qml')
| -rw-r--r-- | raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StateLayer.qml | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StateLayer.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StateLayer.qml deleted file mode 100644 index 8969d93..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Widgets/StateLayer.qml +++ /dev/null @@ -1,74 +0,0 @@ -import QtQuick -import qs.Common - -MouseArea { - id: root - - property bool disabled: false - property color stateColor: Theme.surfaceText - property real cornerRadius: parent && parent.radius !== undefined ? parent.radius : Theme.cornerRadius - property var tooltipText: null - property string tooltipSide: "bottom" - property bool enableRipple: typeof SettingsData !== "undefined" ? (SettingsData.enableRippleEffects ?? true) : true - - readonly property real stateOpacity: disabled ? 0 : pressed ? 0.12 : containsMouse ? 0.08 : 0 - - anchors.fill: parent - cursorShape: disabled ? undefined : Qt.PointingHandCursor - hoverEnabled: true - - onPressed: mouse => { - if (!disabled && enableRipple) { - rippleLayer.trigger(mouse.x, mouse.y); - } - } - - Rectangle { - id: stateRect - anchors.fill: parent - radius: root.cornerRadius - color: Qt.rgba(stateColor.r, stateColor.g, stateColor.b, stateOpacity) - - Behavior on color { - enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None - DankColorAnim { - duration: Theme.shorterDuration - easing.bezierCurve: Theme.expressiveCurves.standardDecel - } - } - } - - DankRipple { - id: rippleLayer - anchors.fill: parent - rippleColor: root.stateColor - cornerRadius: root.cornerRadius - enableRipple: root.enableRipple - } - - Timer { - id: hoverDelay - interval: 400 - repeat: false - onTriggered: { - tooltip.show(root.tooltipText, root, 0, 0, root.tooltipSide); - } - } - - onEntered: { - if (!tooltipText) - return; - hoverDelay.restart(); - } - - onExited: { - if (!tooltipText) - return; - hoverDelay.stop(); - tooltip.hide(); - } - - DankTooltipV2 { - id: tooltip - } -} |