-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Feature: Updated the Toolbar design #15442
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
Conversation
| <Setter Target="Content.CornerRadius" Value="0" /> | ||
| <Setter Target="Content.BorderThickness" Value="0,1,0,1" /> |
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.
Content is floating now so we don't need to modify via the visual state
| <Setter Target="Content.BorderThickness" Value="0,1,0,1" /> | ||
| <Setter Target="SidebarResizer.Visibility" Value="Collapsed" /> | ||
| <Setter Target="ContentPresenter.Margin" Value="0,0,0,0" /> | ||
| <Setter Target="ContentPresenter.Margin" Value="8,0,8,0" /> |
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.
The regular margin is 2,0,8,0 but in the narrow view the sidebar is hidden and thus, we change to 8,0,8,0.
| <Border | ||
| x:Name="ContentHeaderPresenter" | ||
| Grid.Row="0" | ||
| Margin="0,0,0,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.
This margin provides space between the header and content. I'm not so happy about this and I'm open to other ideas.
| } | ||
| } | ||
| else | ||
| appearance.AppThemeAddressBarBackgroundColor = ""; //migrate to new default |
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's been a while since we've migrated to the new default so I think this can be removed.
| </UserControl.Resources> | ||
|
|
||
| <Grid Padding="8,0"> | ||
| <Grid Padding="8,0,0,0"> |
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.
Removed the right spacing to match the content area
| Grid.Column="2" | ||
| MinWidth="4" | ||
| Margin="0,8,0,40" | ||
| Margin="0,60,0,40" |
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.
Increased margin to reflect the floating toolbar
0x5bfa
left a comment
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.
Codequalitylooka good to me.
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.