This commit is contained in:
2026-03-01 11:43:25 +02:00
parent 9762553b38
commit 8fa89bb99c
6 changed files with 628 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ Item {
});
return true;
}
if (iconSources[selectedIndex] === "power.png") {
ShellStateManager.openPowerMenu({
source: "Topbar"
});
return true;
}
}
return false;
}
@@ -90,7 +96,7 @@ Item {
anchors.centerIn: parent
selected: topbar.selectedIndex == repeatitem.index
iconSource: topbar.iconSources[repeatitem.index]
showSoul: !topbar.manager.quickSettingsOpen && !topbar.manager.appLauncherOpen
showSoul: !topbar.manager.quickSettingsOpen && !topbar.manager.appLauncherOpen && !topbar.manager.powerMenuOpen
}
MouseArea {
@@ -107,6 +113,11 @@ Item {
source: "Topbar"
});
}
if (topbar.iconSources[repeatitem.index] === "power.png") {
ShellStateManager.openPowerMenu({
source: "Topbar"
});
}
}
}
}