Skip to content
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

Cleanup: Toolbars in App no longer include unused nesting. #1495

Merged
merged 2 commits into from
May 30, 2024

Conversation

Sewer56
Copy link
Member

@Sewer56 Sewer56 commented May 29, 2024

image

This PR slightly improves how we present toolbars in the various user interface elements.

Previously, inner contents of every single toolbar was declared as something like:

<Grid ColumnDefinitions="Auto, *">
    <StackPanel Grid.Column="0" Orientation="Horizontal">

(Note: Some views had Orientation == Horizontal and some had Alignment == Right, both are redundant with our styles)

The first column of the Grid being reserved to represent the title.
However, none of our current views actually have a title on the toolbar, therefore this can be simplified to:

<StackPanel>

Greatly reducing nesting, and making UI work easier.

When I was working with moving some of the buttons over from My Mods to Mod Library, I noticed this, and thus have cleaned up this unneeded nesting.

@Sewer56 Sewer56 added the Design UI/UX This is related to the UI. label May 29, 2024
@Sewer56 Sewer56 requested a review from a team May 29, 2024 19:12
@Sewer56 Sewer56 self-assigned this May 29, 2024
@Al12rs
Copy link
Contributor

Al12rs commented May 30, 2024

Closing and reopening to rebase CI tests onto latest main

@Al12rs Al12rs closed this May 30, 2024
@Al12rs Al12rs reopened this May 30, 2024
@Al12rs Al12rs merged commit edfa128 into main May 30, 2024
7 of 11 checks passed
@erri120 erri120 deleted the cleanup-toolbar branch June 5, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design UI/UX This is related to the UI.
2 participants