-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Code Quality: Replace OpacityIcon #15843
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
8cb6fe7 to
8891800
Compare
|
|
||
| /// <summary> | ||
| /// Gets string glyph or opacity icon. | ||
| /// Gets string glyph or ThemedIcon 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.
Use <see cref=""/>
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.
Resolved
| public bool CollapseLabel { get; set; } | ||
|
|
||
| public OpacityIconModel OpacityIcon { get; set; } | ||
| public ThemedIconModel ThemedIcon { get; set; } |
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.
Could you rename this to ThemedIconModel?
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.
Done
| { | ||
| public struct ThemedIconModel | ||
| { | ||
| public string ThemedIconStyle { get; set; } |
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.
Could you rename this to 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.
It causes the app to crash, let me know if you have any luck on this one.
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 ok, i was going to replace this to a class with constructor to simplify. I'll find why at that time.
src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs
Outdated
Show resolved
Hide resolved
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.
LGTM, code wise.
It would be appreciated to create MenuFlyoutItemEx (themed icon and image) instead of MenuFlyoutItemWith* in an upcoming PR.
Resolved / Related Issues
This PR replaced OpacityIcon with ThemedIcon.