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

Widget Layouts #80

Open
2 of 7 tasks
gentlegiantJGC opened this issue May 17, 2024 · 0 comments
Open
2 of 7 tasks

Widget Layouts #80

gentlegiantJGC opened this issue May 17, 2024 · 0 comments

Comments

@gentlegiantJGC
Copy link
Member

gentlegiantJGC commented May 17, 2024

My vision for Amulet is to have widgets implemented by plugins that the user can position as per their requirements.
I will refer to the unique positioning of widgets as a layout.
The main window will have a list of buttons that the user can press to switch between layouts.
Plugins can implement layouts and the user can modify to their requirements and add entirely new layouts.

To support this we will need:

  • a public function to register new layouts
  • a public function to enable a layout
  • a signal to notify of a layout change
  • a public function to get a layout's state
  • a public function to set a layout's state
  • a config entry to store user's changes to the layouts and custom layouts
  • a config entry for the order to show layout buttons in

It makes most sense to implement this within the main window plugin.

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

No branches or pull requests

1 participant