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

Draft: Add MenuBar support for macOS #23

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

sqrt0b1000
Copy link

Add MenuBar support for macOS

This commit creates a new target only for macOS.
It allows accessing the interface to control the WLED directly from the menu bar,
making it easier to control when working on a Mac.

Addressing the issues in Pull Request #15.
The macOS version and the iOS version share the same code base now.
Only as few as necessary files were created, that are unique to the specific platform.

Furthermore, due to errors in compiling with Swift 6 some simplifications to the WLEDRequestManager are made,
keeping the same functionality as in DeviceStateFactory which is now called WLEDRequestManagerProvider.
Remove the reference of the ManagedObjectContext from the requests, at it can be accessed through the device easily.

TODO:
— Fix some UI bugs using NavigationSplitView instead of NavigationView, which might better adapt to the menu bar
— Fix missing web view to control the LEDs in Detail or find other solution

@sqrt0b1000 sqrt0b1000 mentioned this pull request Oct 8, 2024
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.

1 participant