-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Make several actions in the Inspector dock more obvious #48742
Make several actions in the Inspector dock more obvious #48742
Conversation
Ideally, the popup's width should be the same width as the button itself. Like how it works everywhere in the editor. |
@YeldhamDev Is the reason I've provided not a good one? |
@pycbouh The fact that the sub-resource popup can get huge enough to be bothersome is kinda of a problem of its own that should be addressed directly, rather than hacks that break consistency. |
I think that's two different UX problems from the same situation. The fact that it's a huge list sometimes and is barely usable is one, and the fact that it's big enough to cover the dock with it so you can't click on a safe area within is another. It's also not that different from the resource picker, which has a popup as wide as its smallest item, not as the whole control: But oh well, this is not a feature I want to argue about 🙂 Reverted. |
f39b451
to
c9d49c2
Compare
That's because the whole control is actually that small highlighted section. 😉 |
Not exactly: for an empty picker clicking on the main part also brings that menu up. That's a combined control with complex behavior, so I'd consider the whole thing as a unified thing. |
Technically, yes. But all it does is telling the button on its right to trigger its popup. But whatever, we're getting offtopic now. 😝 |
For the sub resources drop down, can an item be added to the top of the popup that is a read-only separator (so it has the line) which says 'Sub-Resources'? When the list is empty, it says 'no Subresources found', which is the first indication of what this list actually displays. I think it should be more obvious exactly what the list is showing. |
@EricEzaM I guess it is technically possible, yes. Do we do this anywhere else in the editor? Keep in mind that there is a tooltip on this button, stating "Open a list of sub-resources.", however useful it proves to be. |
Ah yeah I didn't realise there was a tool tip, I didn't test it cause I'm not on a computer atm but I think a tool tip would be fine |
I haven't tested yet, but I'm concerned that the many new buttons in the top bar force a significantly higher width for the inspector, which could be problematic on small screens. |
@akien-mga This is certainly true, though I'm not sure that narrow columns are comfortable to work with, even when possible to have. Here's a comparison: It's about twice as wide now, which I find a comfortable width to be able to read all the options and have large enough areas to interact with. I guess an easy change can be moving the "Docs" button next to the current object's name, above the tools button. That would give us another 30 pixels or so. |
The version with moved Docs is better. But you could leave the separator. |
@KoBeWi You mean the separator in the top bar that used to delimit the docs button from the other 3 new buttons? It will look weird when they are spaced out. By the way, here's the look for the remote scene: |
Yes. The 3 buttons to the right are related, so it makes sense to group them. |
c9d49c2
to
906924f
Compare
Okay, I went with the right alignment for the separator (as opposed to the other option). Separator makes it a bit wider, of course: Current state |
@pycbouh I personally think it could do without the separator. Dangling separators are avoided across the editor, and avoids adding to the minimal size with was the point here in the first place. |
@YeldhamDev I can see both points: it looks better with the separator when at min size but it looks better without it when wider. I'm fine with whichever option, so if we could agree on one I'd implement it 🙃 We need a tiebreaker? |
I think we should keep the separator. If the dangling separator is a problem, you could hide it dynamically if the inspector gets wide enough too. (That said, we may want to always draw the separator in case an editor plugin wants to add its own button there.) |
So if we are keeping the separator, this is good as is? Or are there other strong opinions? |
Okay, we've discussed on RC that the three new buttons from the top bar can be hidden behind a popup menu. This should serve 3 purposes: not overburder the user with a lot of buttons; help with the min width; and also likely remove the need for the separator that was a point of conflict above 🙂 Update is coming soon. |
906924f
to
f6d827b
Compare
Okay, done. More compact, no separators, no overwhelming actions on the top bar. 2021-06-04_02-04-23.mp4Should be good to go! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't reviewed code in depth or tested, but latest screenshots look great and this was positively discussed to reach consensus on RC, so seems good to go.
Thanks! |
Closes godotengine/godot-proposals#2047, and also adjusts the looks of the top part of the Inspector dock to make other actions available more obvious.
Original version
Here it is in action:
2021-06-04_02-04-23.mp4
Original version
TheThis change was reverted (but still present in the clip; so imagine the popup at the button's width when you watch it).PopupMenu
for sub-resources was made a bit shorter than full width to give user an ability to see and click the dock underneath. Especially important for huge sub-resource holders, like themes.Should be possible to cherrypick this to the stable branch.