reworked Workspace.qml to support specialworkspace, fixed launcher opening on two monitors, added slider animation back as an option

This commit is contained in:
SomeElse
2026-05-29 01:59:43 +00:00
parent 7606b96a09
commit a380963757
21 changed files with 120 additions and 57 deletions

View File

@@ -156,48 +156,21 @@ ModuleChip {
}
}
PopupPanel {
StandardPopup {
id: volumePopup
ns: "volume"
chipRoot: root
cardWidth: Cfg.Config.volumePopupWidth
cardColor: root.t.volPopupBg
cardBorderColor: root.t.volPopupBorder
cardHeight: popupCol.implicitHeight + 30
Rectangle {
id: volCard
width: parent.width
height: popupCol.implicitHeight + 30
anchors.top: root.isTop ? parent.top : undefined
anchors.bottom: root.isTop ? undefined : parent.bottom
transform: Scale {
yScale: volumePopup.popupOpen ? 1 : 0
origin.y: root.isTop ? 0 : volCard.height
Behavior on yScale {
NumberAnimation {
duration: Cfg.Config.popupAnimDuration
easing.type: Easing.OutBack
}
enabled: volumePopup.visible
}
}
opacity: volumePopup.popupOpen ? 1.0 : 0.0
Behavior on opacity { NumberAnimation { duration: 200 } }
radius: Cfg.Config.popupRadius
color: root.t.volPopupBg
border.color: root.t.volPopupBorder
border.width: Cfg.Config.popupBorderWidth
MouseArea { anchors.fill: parent; propagateComposedEvents: false }
ColumnLayout {
id: popupCol
anchors { left: parent.left; right: parent.right; top: parent.top }
anchors.margins: 16
anchors.topMargin: 16
spacing: 16
ColumnLayout {
id: popupCol
anchors { left: parent.left; right: parent.right; top: parent.top }
anchors.margins: 16
anchors.topMargin: 16
spacing: 16
VolumeSection {
id: outputSection
@@ -294,7 +267,6 @@ ModuleChip {
}
Item { height: 0 }
}
}
}
component VolumeSection: ColumnLayout {