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

@@ -1,4 +1,4 @@
import { closeAllMenus } from "../index.js";
import { openMenu } from "../utils.js";
const date = Variable("", {
poll: [1000, 'date "+󰃭 %a %b %d  %I:%M:%S %p"'],
@@ -12,9 +12,8 @@ const Clock = () => {
}),
isVisible: true,
props: {
on_primary_click: () => {
closeAllMenus();
App.toggleWindow("calendarmenu");
on_primary_click: (clicked, event) => {
openMenu(clicked, event, "calendarmenu");
},
},
};