diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-05-30 15:35:27 +0200 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-05-30 15:35:27 +0200 |
| commit | d2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch) | |
| tree | fb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/PopupCard.qml | |
| parent | 51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff) | |
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/PopupCard.qml')
| -rw-r--r-- | modules/system/quickshell/PopupCard.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/system/quickshell/PopupCard.qml b/modules/system/quickshell/PopupCard.qml index 6563877..d4d609b 100644 --- a/modules/system/quickshell/PopupCard.qml +++ b/modules/system/quickshell/PopupCard.qml @@ -5,7 +5,7 @@ import QtQuick.Layouts Squircle { id: root - readonly property int maxHeight: 440 + property int maxHeight: 440 property int margins: 16 default property alias content: contentCol.data @@ -13,7 +13,10 @@ Squircle { height: Math.min(Math.max(contentCol.implicitHeight + 2 * margins, 80), maxHeight) Behavior on height { - SpringAnimation { spring: 3; damping: 0.25 } + SpringAnimation { + spring: 3 + damping: 0.25 + } } fillColor: Theme.bg @@ -29,9 +32,7 @@ Squircle { } clip: true contentWidth: availableWidth - ScrollBar.vertical.policy: contentCol.implicitHeight > height - ? ScrollBar.AsNeeded - : ScrollBar.AlwaysOff + ScrollBar.vertical.policy: contentCol.implicitHeight > height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff ColumnLayout { id: contentCol |
