-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Toggle control expand flag directly via top bar #65258
Conversation
CC @YuriSizov since you created #63358 which this PR expands (hah) upon. |
The current system was made this way on purpose, so I'm not sure if this is a good change. No other button in this or anchors' popup behaves like that and updates to match the state of the selected nodes. |
I tried working with the current system (I'm working mainly on applications, so very UI-heavy stuff). The new top bar felt very cumbersome to use without my change in place. While from a programming standpoint I totally understand why it was created this way, for actual users creating UIs I don't think this is a good design. Users like to get instant feedback on their changes, see what each option does and how it affects the layout. An alternative that does not involve updating based on selection state would be to have a "Toggle Expand" button, which does not show the state, but only requires a single click to toggle the flag instead of two. If you want, I can open a proposal for this change first and get some more opinions in. |
@RedMser Yes, those are the options that we have, and the same ones I had to consider before arriving to the current state. I also work primarily with UI in Godot and understand the workflows. But none of these options are good in my opinion, including the current state. I just found it to be more consistent than others, but ultimately I don't like any of them. So I'm all for a better option, I'm just not sure that this is better (because it's inconsistent with the rest). Edit: And to be clear, if this is otherwise approved, I'm not going to die on that hill. 🙃 If this feels better, then it's better. |
To address the issue of consistency, it might help to make the presets/size flags buttons also reflect the selected nodes' current values (by making them toggle buttons, part of a button group)? And in case of differing values between selected nodes, or when one isn't using a preset, none of the options would be highlighted.
I'll gladly help working towards a solution everyone's happy with! So far, every change to the UI system was an improvement to the previous iteration, so I'm confident we'll get there, hopefully before 4.0 releases. 🙂 |
We can give it a try. Would also be nice to somehow indicate that "expand" is not a standalone flag and is changing the main flag's behavior. Maybe with a highlight like I did for the movie writer button (though that may be too much). |
It is exactly what I was expecting, the buttons and checkboxes to behave. in the issue #81726. Internally it has to be managed by code. |
Consistency aside, IMO the main problem with this change is that the state of the button is kind of undetermined. It's obvious when you select one Control, but if you have multiple selected controls or non-Control nodes mixed in it becomes messy. Another option to consider, not mentioned here, is making the expand flag use a modifier key. So the checkbox could be replaced with a label "Hold Shift to set with Expand" (though it's long). If not, at least the checkbox could be changed to CheckButton, to better convey immediate action. |
Sorry it took me a while. Updated to use a check button, since I think this UX is clearer. |
Something is wrong with undo: 9jExvWLm42.mp4 |
Same bug existed for changing the shrink flags in that same popup as well. I fixed both by replacing |
Thanks! |
Fixes #81726