Skip to content

Conversation

@yaira2
Copy link
Member

@yaira2 yaira2 commented Jul 22, 2024

Resolved / Related Issues

This PR replaced OpacityIcon with ThemedIcon.

@yaira2 yaira2 marked this pull request as draft July 22, 2024 22:36
@files-community files-community locked and limited conversation to collaborators Jul 22, 2024
@yaira2 yaira2 force-pushed the ya/Icons branch 4 times, most recently from 8cb6fe7 to 8891800 Compare July 23, 2024 15:56
@yaira2 yaira2 marked this pull request as ready for review July 23, 2024 16:01
@files-community files-community unlocked this conversation Jul 23, 2024
@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Jul 23, 2024
@0x5bfa 0x5bfa self-requested a review July 23, 2024 16:18

/// <summary>
/// Gets string glyph or opacity icon.
/// Gets string glyph or ThemedIcon style.
Copy link
Member

@0x5bfa 0x5bfa Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use <see cref=""/>

Copy link
Member Author

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; }
Copy link
Member

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?

Copy link
Member Author

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; }
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

@0x5bfa 0x5bfa left a 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.

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Jul 24, 2024
@yaira2 yaira2 merged commit be602bf into main Jul 24, 2024
@yaira2 yaira2 deleted the ya/Icons branch July 24, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants