usable
This commit is contained in:
@@ -5,8 +5,8 @@ import Quickshell.Services.SystemTray
|
||||
import Quickshell.Widgets
|
||||
|
||||
Item {
|
||||
implicitWidth: 10 + rep.count * (2 * lay.spacing + 20)
|
||||
height: 30
|
||||
implicitHeight: 10 + rep.count * (2 * lay.spacing + 20)
|
||||
width: 30
|
||||
visible: SystemTray.items.values.length != 0
|
||||
|
||||
id: root
|
||||
@@ -14,9 +14,10 @@ Item {
|
||||
required property real popupOffset
|
||||
|
||||
ClippingWrapperRectangle {
|
||||
radius: 5
|
||||
radius: 3
|
||||
anchors.fill: parent
|
||||
RowLayout {
|
||||
color: Pywal.colors.color4
|
||||
ColumnLayout {
|
||||
id: lay
|
||||
spacing: 4
|
||||
Repeater {
|
||||
@@ -25,9 +26,12 @@ Item {
|
||||
model: SystemTray.items
|
||||
ClippingWrapperRectangle {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
radius: 10
|
||||
radius: 3
|
||||
implicitWidth: 20
|
||||
implicitHeight: 20
|
||||
|
||||
color: Pywal.colors.color1
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -49,7 +53,7 @@ Item {
|
||||
if(mouse.button == Qt.LeftButton) {
|
||||
SystemTray.items.values[index].activate()
|
||||
} else if(mouse.button == Qt.RightButton) {
|
||||
SystemTray.items.values[index].display(root.window, popupOffset, 40)
|
||||
SystemTray.items.values[index].display(root.window, popupOffset, root.y - 100)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user