Centralize menu button coordinate logic and replace popupwindows with dropdownmenu.

This commit is contained in:
Jas Singh
2024-07-14 15:13:09 -07:00
parent 6062164652
commit 7a2fdf8647
21 changed files with 89 additions and 109 deletions

View File

@@ -12,14 +12,6 @@ import { SysTray } from "./systray/index.js";
import { BarItemBox } from "../shared/barItemBox.js";
const closeAllMenus = () => {
App.closeWindow("bluetoothmenu");
App.closeWindow("audiomenu");
App.closeWindow("networkmenu");
App.closeWindow("mediamenu");
App.closeWindow("calendarmenu");
}
// layout of the bar
const Left = (monitor, wsMap) => {
return Widget.Box({
@@ -118,4 +110,4 @@ const BarAlt = (monitor = 0, wsMap) => {
});
};
export { Bar, BarAlt, closeAllMenus };
export { Bar, BarAlt };