lux-shell/services/Visibility.qml
2025-08-27 09:34:30 -04:00

29 lines
745 B
QML

pragma Singleton
import qs.widgets
import Quickshell
Singleton {
property alias launcher: properties.launcher
property alias pomodoro: properties.pomodoro
property alias powermenu: properties.powermenu
property alias storybook: properties.storybook
property StyledPopupWindow activePopup
function togglePopup(popup: StyledPopupWindow) {
if (activePopup && popup != activePopup) {
activePopup.state = "";
}
popup.state = popup.state == "opened" ? "" : "opened";
activePopup = popup;
}
PersistentProperties {
id: properties
property bool launcher
property bool pomodoro
property bool powermenu
property bool storybook
}
}