-
Notifications
You must be signed in to change notification settings - Fork 8.7k
[UX] Settings UI refinements #19001
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
[UX] Settings UI refinements #19001
Conversation
This comment has been minimized.
This comment has been minimized.
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.
Love all the changes you've made. Thank you so much!
There's just a few changes that I'm uncertain of. Added a comment and my thoughts. Let me know what you think. I'm excited to see this land soon!
Margin="10,0,0,0" | ||
Padding="2,0,2,0" | ||
Margin="12,0,0,0" | ||
Padding="8,4" | ||
HorizontalAlignment="Left" | ||
VerticalAlignment="Center" | ||
Background="{ThemeResource SystemAltMediumLowColor}" | ||
BorderBrush="{ThemeResource SystemControlForegroundBaseMediumBrush}" | ||
Background="{ThemeResource SubtleFillColorSecondaryBrush}" | ||
BorderBrush="{ThemeResource ControlStrongStrokeColorDefaultBrush}" | ||
BorderThickness="1" | ||
CornerRadius="1" | ||
CornerRadius="{StaticResource ControlCornerRadius}" | ||
Visibility="{x:Bind IsDefaultScheme, Mode=OneWay}"> | ||
<TextBlock x:Uid="ColorScheme_DefaultTag" | ||
Grid.Column="1" | ||
AutomationProperties.AccessibilityView="Raw" | ||
Foreground="{ThemeResource SystemControlForegroundBaseMediumBrush}" /> | ||
Foreground="{ThemeResource TextFillColorSecondaryBrush}" /> |
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.
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.
Was the existing token style by design? In WinUI we use 4px as a minimum margin around text so it's legible. The brushes that were previously used are not part of WinUI but OS.
<Setter Property="CornerRadius" Value="1" /> | ||
<Setter Property="Background" Value="{ThemeResource SystemAltMediumLowColor}" /> | ||
<Setter Property="BorderBrush" Value="{ThemeResource SystemControlForegroundBaseMediumBrush}" /> | ||
<Setter Property="CornerRadius" Value="{StaticResource ControlCornerRadius}" /> | ||
<Setter Property="Background" Value="{ThemeResource SubtleFillColorSecondaryBrush}" /> | ||
<Setter Property="BorderBrush" Value="{ThemeResource DividerStrokeColorDefaultBrush}" /> | ||
<Setter Property="Padding" Value="4,4,4,4" /> |
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.
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.
Why does it need to be a different color anyway? Couldn't it just be a regular label / text?
If I had to pick between the two images though, I'd prefer the button style.
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.
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.
Once we have better specs for this, we can implement it here too? Shall I revert for now?
I support this, revert for now and return to it once the design team has finalized what it should look like
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.
so did we revert it? I notice it's still in the "after" screenshots...
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.
FYI @PankajBhojwani is actively working on this page over in #18917. We should make sure some of this styling is carried over in the new subpage.
Quick gut check: Terminal runs on Windows 10 still. This doesn't change that, right? |
Co-authored-by: Carlos Zamora <carlos.zamora@microsoft.com>
Nope. all resources that are used are part of WinUI (2/3). |
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.
Tested the branch locally and went through some of the pages (i.e. Extensions, Profile > Appearance) and controls (i.e. nullable color picker settings) comparing them to what's in Canary. Looks good to me. Thank you so much for doing this 😊
<!-- Used to stack a group of settings --> | ||
<Style x:Key="SettingsStackStyle" | ||
TargetType="StackPanel"> | ||
<Setter Property="Margin" Value="{StaticResource SettingStackMargin}" /> | ||
<Setter Property="MaxWidth" Value="{StaticResource StandardControlMaxWidth}" /> | ||
</Style> | ||
|
||
<!-- Used to stack a group of settings inside a pivot --> | ||
<Style x:Key="PivotStackStyle" | ||
TargetType="StackPanel"> | ||
<Setter Property="Margin" Value="{StaticResource SettingStackMargin}" /> | ||
<Setter Property="MaxWidth" Value="{StaticResource StandardControlMaxWidth}" /> | ||
</Style> |
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.
Huh, looks like we can merge the two and just keep SettingsStackStyle
around. PivotStackStyle
was probably introduced back when we had a Pivot control ages ago.
If you're interested, feel free to do this as a part of this PR. Not a requirement though. More just something I took note of 😊
Reverts most of the styling changes done in #19001 to the key chords displayed in the SUI's Actions page. The `CornerRadius` was kept at the updated value of `ControlCornerRadius` for consistency. The only other changes in #19001 that were kept for this page include: - `EditButtonIconSize`: 15 --> 14 - `AccentEditButtonStyle` > `Padding`: 3 --> 4 - Command name's `FontWeight` reduced to `Normal` - `AddNewButton` > `Margin` added (set to `0,12,0,0` to provide spacing between breadcrumb header and button)
This PR is a (first) design pass on the Terminal settings UX to bring consistency and alignment with the rest of the OS and other settings surfaces.
High-level changes include: