-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Feature: Added slider to control item size (phase 1) #14719
Conversation
8eb9f21
to
3f9d349
Compare
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.
Note to update docs
2cac045
to
d94cfc8
Compare
943a202
to
3b4a334
Compare
Sorry i'm new hear. So this is still in progress, not yet done to use, right? |
@Aghyads this pull request adds the requested feature, there is still work to be done but the basic implementation is almost complete. |
ecc6e7e
to
226eadd
Compare
9949496
to
e53df41
Compare
@@ -206,6 +170,7 @@ protected virtual void OnContextChanged(string propertyName) | |||
|
|||
internal class LayoutDecreaseSizeAction : IAction |
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.
IsExecutable
should be implemented.
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.
👍
if (UserSettingsService.LayoutSettingsService.ItemSizeColumnsView > Constants.IconHeights.ColumnsView.Minimum) | ||
UserSettingsService.LayoutSettingsService.ItemSizeColumnsView -= Constants.IconHeights.ColumnsView.Increment; | ||
break; | ||
} | ||
|
||
return Task.CompletedTask; | ||
} | ||
} | ||
|
||
internal class LayoutIncreaseSizeAction : IAction |
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.
As above.
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.
The values of LayoutDecreaseSizeDescription
and LayoutIncreaseSizeDescription
should be changed because their messages are currently limited to the grid layout.
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.
👍
e039d09
to
f6ce634
Compare
f6ce634
to
f10c9f2
Compare
public bool IsExecutable | ||
=> contentPageContext.PageType is not ContentPageTypes.Home; |
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.
IsExecutable
should be false when ExecuteAsync
does nothing.
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.
We can add that but it's a lot of additional logic with little benefit.
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 prevents meaningless commands from appearing in the command palette.
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 locally; works for me.
private static readonly IUserSettingsService UserSettingsService = Ioc.Default.GetRequiredService<IUserSettingsService>(); | ||
private readonly IDisplayPageContext displayPageContext = Ioc.Default.GetRequiredService<IDisplayPageContext>(); | ||
private readonly IContentPageContext contentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>(); |
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.
Should all be private properties with pascal case.
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.
👍
private static readonly IUserSettingsService UserSettingsService = Ioc.Default.GetRequiredService<IUserSettingsService>(); | ||
private readonly IDisplayPageContext displayPageContext = Ioc.Default.GetRequiredService<IDisplayPageContext>(); | ||
private readonly IContentPageContext contentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>(); |
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.
As above.
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.
👍
if (value != UserSettingsService.LayoutSettingsService.ItemSizeDetailsView) | ||
{ | ||
NotifyPropertyChanged(nameof(ItemSize)); | ||
} |
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.
Remove brackets
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.
👍
dafca55
to
c1a59db
Compare
d243474
to
134e085
Compare
0f5bf11
to
80b889a
Compare
I tried to test, but #14785 prevents me from testing properly. |
Resolved / Related Issues
For Feature: Slider to control thumbnail size #10492...
Validation
How did you test these changes?
Screenshots (optional)
Add screenshots here.