-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Overhaul settings panel layout #19677
Overhaul settings panel layout #19677
Conversation
I generally like this, but there are a small number of sharp edges that we should try to polish:
|
Agreed.
I'm not against arranging controls in columns in principle but I think that our settings panels are too narrow for that. I'd stick with a single column.
I think that it fits better to the left, putting it below the dropdown feels more awkward:
Yes, this bugs me too. I explored two approaches: Enable/disable the silder: Show/hide the slider:
Agreed. |
The thing that bothers me with the checkboxes is that all the other input types focus their input/attention to the right of the panel, but checkboxes focuses it on the far left, making those tabs feels disjointed. My first thought was that we could mitigate this by having two checkboxes per row, so at least we have some kind of content in the right half of those rows. My second thought is that we could instead align the checkboxes to match the dropdowns and sliders: This is only a problem where there are checkboxes sandwiched between dropdowns, so the advanced panel could keep its checkboxes left aligned. This screenshot also shows a bug: changing the UI Scale makes all the tabs collapse on themselves - A more radical option could be to place the labels to the left: But i don't like how this leaves only a small visible click target to toggle the option. |
The broodwar approach could potentially work well and IMO is definitely worth at least mockup in our common/TD UI. We could do the same for the lobby options bin, which would let us use 3 columns for dropdowns instead of mixing 2 and 3 columns in the UI. |
eff08ce
to
5586314
Compare
I have some more tweaking to do here so please hold off reviewing for a little while. |
5586314
to
82c61b7
Compare
82c61b7
to
4092819
Compare
Update: changed how the settings widget widths and positions are calculated (in YAML). This doesn't alter the appearance, just makes things a little more robust. |
Would there be room for a checkbox for |
Yes, the new layout can accommodate any number of settings widgets. A checkbox for discord seems like a sensible feature but should be added in a follow up PR. |
4092819
to
5f76f5f
Compare
Rebased. |
5f76f5f
to
fe37960
Compare
Rebased after the merge of #19681 so it all comes together. |
The darker separator style in RA and (to a lesser extent) TS still feel weird to me, but I imagine i'll get used to them if they go ahead. I do object to these separators having a different style to the separators used in the mission and multiplayer browsers, though. Can we please switch those to the same style, or keep everything using the old style here and open a new PR to update the separators in all four places as a followup? |
Perhaps best in a followup PR, but IMO good polish to fix before a release: The labels for the lobby options dropdown buttons should end with a colon to match the settings menu, and be greyed out when disabled (in the ingame menu / for non-admins in the lobby). |
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.
LGTM otherwise
Agreed. It bugs me too. Let's keep the old style here and defer the new style to a follow up.
Good catch. I'll add the colons here but leave the greying out to a follow up as it's not so straight forward - we need to establish a link between the label and the dropdown. Thanks for the review @pchote. |
- make the panel larger - place settings widgets in a scroll panel - arrange settings widgets in two columns - make tabs in TD vertical
fe37960
to
d225886
Compare
Update:
|
Width: PARENT_RIGHT | ||
Height: 20 | ||
Font: Regular | ||
Text: UI Feedback in Transients Panel |
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.
@pchote not entirely sure, but shouldn't this be Transient Panels
?
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.
I think Transients Panel is indeed correct, since this is referring to the new ingame display for transient feedback.
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.
It does sound somewhat unclear. Should we change to something like "Show UI Feedback Notifications"? Or add a tooltip description? (not necessarily in this PR)
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.
Show UI Feedback Notifications
👍
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.
Sounds good, but I'll merge this first then (there are some other improvements I'd like to see as well, I'll file a follow-up PR or issue about it later).
This PR lays out the settings panel in a consistent and simple way whilst accommodating any number of any type of settings widgets.
Closes #18952
Closes #18426
Related #16596
RA, D2k, TS
The vertical tabs are a precedent but I think they fit and this layout allows for more tabs to be added. In the "common" UI I decided not to touch it as there isn't enough horizontal space because of the main menu. The settings panels is made larger and is the size of the asset browser.
![Screenshot_20210922_195713](https://user-images.githubusercontent.com/1355810/134388570-249ef9b9-c845-4dd4-a13c-2acf45ac8133.png)
TD
In TD the vertical vs horizontal tabs dissonance was more apparent so I switched the game info to also use the new vertically stacked layout. And both panels are now the same size.
![Screenshot_20210922_172916](https://user-images.githubusercontent.com/1355810/134387618-6162874a-5330-4b98-b396-9584a0916f81.png)
Settings panel with vertical tabs
Game info panel with vertical tabs