Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

[Themes] Dialog Cancel button is broken or unnecessary #8390

Closed
redmunds opened this issue Jul 14, 2014 · 6 comments
Closed

[Themes] Dialog Cancel button is broken or unnecessary #8390

redmunds opened this issue Jul 14, 2014 · 6 comments

Comments

@redmunds
Copy link
Contributor

When I change Current Theme, Brackets updates immediately. Then I click Cancel button and Dialog closes, but Theme does not revert to original. Not sure if Cancel button is broken, or it is unnecessary, but a change needs to be made one way or the other.

@MiguelCastillo
Copy link
Contributor

@redmunds So, maybe this is just an issue with usability. But selecting themes isn't really related to the cancel/done button. The theme dropdown is what drives it. The rest of the settings are the ones that are tied to the buttons.

So, the idea is to allow users switch themes without dismissing the dialog, which is rather cumbersome. Maybe if the user cancels out we revert the theme they selected?

@redmunds
Copy link
Contributor Author

@MiguelCastillo I agree it's useful to immediately update the editor to quickly see how a Theme looks.

If choosing a Theme were the only control in this dialog, then I would say just remove the Cancel button. But, since there are other controls, then I think that reverting the Theme (and all other settings) on Cancel is the way to go.

@peterflynn
Copy link
Member

+1

Sometimes apps will use a "Close" or "Done" button instead of "Cancel" to make it clear that changes made in the dialog aren't undoable... but IMHO that's sort of an anti-pattern. Much better to behave like other Brackets dialogs and allow backing out without making permanent changes.

@peterflynn peterflynn added this to the Release 0.42 milestone Jul 15, 2014
@MiguelCastillo
Copy link
Contributor

@peterflynn Yeah I think that canceling out of the dialog should revert the selected theme, for sure. I will put something together for this and submit a PR soon.

@dangoor
Copy link
Contributor

dangoor commented Jul 16, 2014

FBNC to @redmunds

@redmunds
Copy link
Contributor Author

Confirmed. Closing.

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

No branches or pull requests

4 participants