waffles: action center: volume menu

This commit is contained in:
end-4
2025-11-19 23:39:18 +01:00
parent bca177eed2
commit 5c8d824749
42 changed files with 680 additions and 129 deletions
@@ -1,12 +1,12 @@
import QtQuick
import qs.modules.common
import qs.modules.common.widgets
Loader {
id: root
property bool shown: true
property alias fade: opacityBehavior.enabled
property alias animation: opacityBehavior.animation
opacity: shown ? 1 : 0
visible: opacity > 0
active: opacity > 0
@@ -13,7 +13,9 @@ Item {
property bool alternativeVisibleCondition: false
property real horizontalPadding: 10
property real verticalPadding: 5
property real horizontalMargin: horizontalPadding
property real verticalMargin: verticalPadding
function updateAnchor() {
tooltipLoader.item?.anchor.updateAnchor();
}
@@ -49,8 +51,8 @@ Item {
}
color: "transparent"
implicitWidth: root.contentItem.implicitWidth + root.horizontalPadding * 2
implicitHeight: root.contentItem.implicitHeight + root.verticalPadding * 2
implicitWidth: root.contentItem.implicitWidth + root.horizontalMargin * 2
implicitHeight: root.contentItem.implicitHeight + root.verticalMargin * 2
data: [root.contentItem]
}