Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: native macos menubar #32

Open
wants to merge 2 commits into
base: feat/backend-api-fixes
Choose a base branch
from

Conversation

vgarleanu
Copy link
Member

Adds a native macos menu-bar and hides the slint one. This potentially could be reused across windows and Linux. On linux this would add gtk3 as a dep.

@vgarleanu vgarleanu requested a review from IGI-111 May 31, 2024 17:46
@@ -1,5 +1,5 @@
[package]
name = "kira"
name = "Kira"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package names are lowercase

let menu_bar = Menu::new();

menu_bar.append_items(&[&app, &file]).unwrap();
menu_bar.init_for_nsapp();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a gtk window for the linux version of this, but in general, this entire thing should not be in a platform specific module if we're going to use it for multiple platform, this isn't a darwin menu, it's just the menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants