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

Change Settings Screen to a Popup Dialog #36

Merged
merged 1 commit into from
May 6, 2024

Conversation

alonalbert
Copy link
Contributor

SwingPanel doesn't work with Dialogs so I added DialogSupportingSwingPanel which works around the problem by grabbing a screenshot of its component and rendering an Image when the dialog is visible.

Some more changes were made to work better with a popup:

  • Wrap the settings with a Material Card
  • Add a Cancel button
  • Move buttons to the bottom right
  • Update the icons on the fly
  • Disable the Save button if paths are invalid
  • Allow dismissing the dialog with an invalid state but disable the Compile menu item. This should only be possible on first run.

image

SwingPanel doesn't work with Dialogs so I added DialogSupportingSwingPanel which works around the problem by grabbing a screenshot of its component and rendering an Image when the dialog is visible.

Some more changes were made to work better with a popup:

* Wrap the settings with a Material Card
* Add a Cancel button
* Move buttons to the bottom right
* Update the icons on the fly
* Disable the Save button if paths are invalid
* Allow dismissing the dialog with an invalid state but disable the Compile menu item. This should only be possible on first run.
@romainguy romainguy merged commit 93e65c8 into romainguy:main May 6, 2024
1 check passed
@alonalbert alonalbert deleted the popup branch May 8, 2024 13:49
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