Refactor the old menu bar plumbing to use standard TextButtons (#3444)

* Refactor the old menu bar plumbing to use standard TextButtons

* WIP: Fix Mac native menu bar

* WIP: fix desktop menu bar mac

* Refactor menu bar definitions to use the builder pattern

* WIP: fixup desktop

* cleanup

* fix linux

* Remove dead code that was failing to lint

---------

Co-authored-by: Timon Schelling <me@timon.zip>
This commit is contained in:
Keavon Chambers
2025-12-03 12:41:54 +00:00
committed by GitHub
co-authored by Timon Schelling
parent 3fd0460d03
commit 600fb5c28f
34 changed files with 1222 additions and 1355 deletions
@@ -54,6 +54,13 @@ export function createNodeGraphState(editor: Editor) {
reorderExportIndex: undefined as number | undefined,
});
function closeContextMenu() {
update((state) => {
state.contextMenuInformation = undefined;
return state;
});
}
// Set up message subscriptions on creation
editor.subscriptions.subscribeJsMessage(SendUIMetadata, (uiMetadata) => {
update((state) => {
@@ -184,6 +191,7 @@ export function createNodeGraphState(editor: Editor) {
return {
subscribe,
closeContextMenu,
};
}
export type NodeGraphState = ReturnType<typeof createNodeGraphState>;