fix remaining PopupPanel refs in TrayMenu and Volume
This commit is contained in:
parent
585297ea2d
commit
bcaabd5120
2 changed files with 8 additions and 5 deletions
|
|
@ -2,9 +2,11 @@ import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import "." as M
|
import "." as M
|
||||||
|
|
||||||
M.PopupPanel {
|
M.HoverPanel {
|
||||||
id: menuWindow
|
id: menuWindow
|
||||||
|
|
||||||
|
popupMode: true
|
||||||
|
|
||||||
required property var handle
|
required property var handle
|
||||||
|
|
||||||
property var _currentHandle: handle
|
property var _currentHandle: handle
|
||||||
|
|
@ -17,7 +19,7 @@ M.PopupPanel {
|
||||||
// Back button (submenus only)
|
// Back button (submenus only)
|
||||||
Item {
|
Item {
|
||||||
visible: menuWindow._handleStack.length > 0
|
visible: menuWindow._handleStack.length > 0
|
||||||
width: menuWindow.panelWidth
|
width: menuWindow.contentWidth
|
||||||
height: visible ? 28 : 0
|
height: visible ? 28 : 0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
@ -58,7 +60,7 @@ M.PopupPanel {
|
||||||
|
|
||||||
required property QsMenuEntry modelData
|
required property QsMenuEntry modelData
|
||||||
|
|
||||||
width: menuWindow.panelWidth
|
width: menuWindow.contentWidth
|
||||||
height: modelData.isSeparator ? 9 : 28
|
height: modelData.isSeparator ? 9 : 28
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
|
|
@ -220,11 +220,12 @@ M.BarSection {
|
||||||
id: mixerLoader
|
id: mixerLoader
|
||||||
active: false
|
active: false
|
||||||
|
|
||||||
M.PopupPanel {
|
M.HoverPanel {
|
||||||
|
popupMode: true
|
||||||
accentColor: root.accentColor
|
accentColor: root.accentColor
|
||||||
screen: root.bar.screen
|
screen: root.bar.screen
|
||||||
anchorX: root.mapToGlobal(root.width / 2, 0).x - (root.bar.screen?.x ?? 0)
|
anchorX: root.mapToGlobal(root.width / 2, 0).x - (root.bar.screen?.x ?? 0)
|
||||||
panelWidth: 220
|
contentWidth: 220
|
||||||
onDismissed: mixerLoader.active = false
|
onDismissed: mixerLoader.active = false
|
||||||
|
|
||||||
// Output devices
|
// Output devices
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue