-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Added Spacing and Padding options for compact layouts #7941
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
…live through the ShellPage
Do we need any extra handling for the column layout? |
Fabulous! |
@yaichenbaum No, I thought about generalizing it so that |
I would change a couple things before merging this
|
Sounds good! And yeah I thought about just having three options rather than a slider, but I guess that's still useful to find the best balance for the three options. As discussed in the issue's thread, I'll try to scale the context menu flyout and the sidebar as well and move the option into the settings page so it's more obvious it relates to the whole UI. As for the font scaling, I am not sure that scaling it with padding and spacing helps. What happens if a user want more "breath" in the UI but then the font and icon scale up too, making the UI too cluttered? I think maybe a separate option for small, medium, large font might be a good alternative? |
I think we should hold off on it and wait for some feedback on the compact layout before discussing the font and icon scaling. |
Sounds good! BTW should I add a shortcut to the navbar flyout from the settings, similar to "Show Hidden Items" being both in the Settings page and in the navbar flyout? |
Probably better not to since it affects (or at least it will) other areas of the app beyond the file area. |
Hey! Unfortunately I'll be a bit busy for another week or two with my PhD thesis. I'll try to finish it up on the weekend. Sorry about that! |
+1 |
@Gabryxx7 thank you! |
At the moment I'm adding the spacing settings to the Appearance tab with a dropdown and a few options such as Tighter/Tight/Default/Spacious/MoreSpacious
|
@Gabryxx7 thank you for working on this pull request, we ended up implementing this a little differently, but this PR was helpful and made it easier to implement the feature. |
Resolved / Related Issues
Items resolved / related issues by this PR.
Details of Changes
Add details of changes here.
ThemeResource
settings toApp.xaml
to make it easily modifiable (instead of beingStaticResource
s)SpacingSizePx
andPaddingSizePx
which I already reigstered to JSON and added them both toUserSettingsService.AppearanceSettingsService
-- The changes are updated LIVE through
ModernShellPage
andColumnShellPage
by calling a new abstract method inBaseLayout
calledUpdateAppearanceSettings()
.--
UpdateAppearanceSettings()
then calls the methodContainerFromItem()
implemented by the children classes such asDetailsBrowserLayout
-- The new method
ContainerFromItem()
is abstract and located inBaseLayout
so the inheriting layouts can implement it however they want to return whatever item they want from alistedItem
.-- All of this was needed to update Margin and Padding live since they are set in the item style template and wouldn't be updated otherwise
Grid
elements'Height
toAuto
to automatically scale icons and avoid them getting clipped due to thePadding
changes.Validation
How did you test these changes?
Screenshots (optional)

