UI tweaks and fixes: dividers, checkbox-to-text spacing, multiplayer tab connection button #12646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This description covers my reasoning for these changes. I'll attempt to argue for why I think they're sensible, but feel free to challenge me on any point. To clarify, the following is my opinion, but I'll try to support it with evidence.
[1]
Commits labelled [1] deal with consistency. Previously, the Options popup contained three different types of dividers, and the multiplayer tab was structured as a real function instead of a single-expression, unlike the rest. I've standardised the dividers to use the styling provided by the skin by default, which was the behaviour previously used in the multiplayer tab. This is for several reasons:
The function structure change in MultiplayerTab.kt is just for internal consistency with the order tabs and should have no effect.
Visual comparison:
Old:
New:
[2]
Commits labelled [2] deal with checkboxes. They are clearly not spaced far enough away from the text. Checkbox-to-text spacing varies on Web, Desktop, and Mobile UIs, but it is almost never less than 0.5rem. I've set it to an approximation of that value to make checkboxes less cramped; this should also help with future consistency. Here's a visual comparison:
Old:
New:
[3]
The commit labelled [3] centres the "Check connection" button in the multiplayer tab. This change should be less controversial than the others, unless the button was off-centre for a reason that I'm not aware of.
Old:
New: