Initial commit

This commit is contained in:
kossLAN 2025-06-07 04:01:14 -04:00
commit 05cd51b54e
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
148 changed files with 10112 additions and 0 deletions

View file

@ -0,0 +1,41 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Widgets
import Quickshell.Services.SystemTray
import "../widgets" as Widgets
import ".."
RowLayout {
id: root
required property var bar
spacing: 10
visible: SystemTray.items.values.length > 0
Repeater {
model: SystemTray.items
Widgets.IconButton {
id: iconButton
implicitSize: 20
source: modelData.icon
padding: 0
QsMenuAnchor {
id: menuAnchor
menu: modelData.menu
anchor {
window: bar
adjustment: PopupAdjustment.Flip
onAnchoring: {
anchor.rect = mapToItem(bar.contentItem, -2, height + 4, width + 2, 0);
}
}
}
onClicked: menuAnchor.open()
}
}
}