feat: add option for recoloring tray icons + show popout on hover

This commit is contained in:
2026-07-02 11:33:43 +02:00
parent 53836aec1a
commit 4d731c5a65
7 changed files with 33 additions and 25 deletions
+3 -3
View File
@@ -61,12 +61,12 @@ RowLayout {
}
let trayPos = mapToItem(sysTray, localX, localY);
if (sysTray.contains(Qt.point(trayPos.x, trayPos.y))) {
if (Config.bar.tray.showOnHover && sysTray.contains(Qt.point(trayPos.x, trayPos.y))) {
let trayRowPos = sysTray.mapToItem(sysRow, trayPos.x, trayPos.y);
let child = sysRow.childAt(trayRowPos.x, trayRowPos.y);
if (child && child.hasOwnProperty("popoutId")) {
if (child && child.hasOwnProperty("ind")) {
return {
id: child.popoutId,
id: `traymenu${child.ind}`,
item: child
};
}