Skip to content
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

Progressring updates #489

Merged
merged 7 commits into from
Jul 10, 2020
Merged

Conversation

marcelwgn
Copy link
Collaborator

Description

Update images, the namespaces used in the sample code and the namespace used in the page code.

Motivation and Context

Closes #485

How Has This Been Tested?

Tested manually

Screenshots (if appropriate):

image
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@YuliKl
Copy link

YuliKl commented Jul 6, 2020

Looks great! One more request - can you add a "New" tag to ProgressRing, just like the AutomationProperties tile has? And probably update ProgressBar's from "Preview" also to "New" while you're in that file. Thank you!

@stmoy
Copy link
Contributor

stmoy commented Jul 6, 2020

Thank you for making these changes @chingucoding! Double checking - it looks like the black part of the ProgressRing image is fuzzy or something. Is it just me?

image

@marcelwgn
Copy link
Collaborator Author

Sure @YuliKl , I'll change that.

@stmoy Strange, now I see it too. I'll (hopefully) fix this soon.

@marcelwgn
Copy link
Collaborator Author

image

Updated images and controls json file now.

@stmoy
Copy link
Contributor

stmoy commented Jul 6, 2020

Thanks @chingucoding. I'm still seeing some strange rendering artifacts or something - how are these image files generated?

@marcelwgn
Copy link
Collaborator Author

marcelwgn commented Jul 6, 2020

I've taken a screenshot of the actual progressring, removed background and scaled them down using GIMP

The "border" is partially transparent, maybe that is a problem here?

@stmoy
Copy link
Contributor

stmoy commented Jul 6, 2020

Perhaps. What does it look like in dark theme? Most (all?) of the icons have a solid white border, I believe. So I think we'll need that here as well.

@marcelwgn
Copy link
Collaborator Author

It looks bad:

image

Unfortunately, I am definitely not an expert on this area :/

@stmoy
Copy link
Contributor

stmoy commented Jul 6, 2020

Thanks for checking. I think we'll probably want to hold off taking this change until the images are fixed (or removed from the change). @YuliKl do you have thoughts on how to generate one of these icons? Maybe we could ask our friend @mdtauk 😅

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

Thanks for checking. I think we'll probably want to hold off taking this change until the images are fixed (or removed from the change). @YuliKl do you have thoughts on how to generate one of these icons? Maybe we could ask our friend @mdtauk 😅

Are you sure all parts of that Icon change with the Light and Dark theme, it looks like the progress segment is not using white.
At such a small size, its going to be a struggle, unless you use transparency for the ring itself.

if you wanted it to all be Opaque, thickness is the only option you can change
image

Or use a dashed line for the track ring

@marcelwgn
Copy link
Collaborator Author

marcelwgn commented Jul 7, 2020

For dark theme however, we would still need a white border of sorts (similiar to other icons) since otherwise, you wouldn't be able to see the icon that well.

@stmoy
Copy link
Contributor

stmoy commented Jul 7, 2020

For context, many of the other icons are not square nor mono-colored:

image

image

@stmoy
Copy link
Contributor

stmoy commented Jul 7, 2020

@chingucoding, what about this?

ProgressIcon

image

@marcelwgn
Copy link
Collaborator Author

Those look fine to me. I am a bit concerned how the ring would look like on the NavigationView given that it is being displayed very small, though it would probably be fine.

Would you like to update the images or would you like me to? We would first need to remove the background to make it transparent and blend in well with the other icons.

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

image

@stmoy
Copy link
Contributor

stmoy commented Jul 7, 2020

Thanks @mdtauk - one further clarification: the light and dark theme use the same assets today, meaning we need a single asset that looks good in both themes.

I am a bit concerned how the ring would look like on the NavigationView given that it is being displayed very small, though it would probably be fine.

Oh, you're right. Oops. The NavigationView only uses FontIcons right now to avoid an issue where using custom assets wouldn't render on first launch. I think we should avoid using a custom asset in the NavigationView and change the icon to a different font icon.

We would first need to remove the background to make it transparent and blend in well with the other icons.

The first picture I included has a transparent background.

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

Thanks @mdtauk - one further clarification: the light and dark theme use the same assets today, meaning we need a single asset that looks good in both themes.

I am a bit concerned how the ring would look like on the NavigationView given that it is being displayed very small, though it would probably be fine.

Oh, you're right. Oops. The NavigationView only uses FontIcons right now to avoid an issue where using custom assets wouldn't render on first launch. I think we should avoid using a custom asset in the NavigationView and change the icon to a different font icon.

We would first need to remove the background to make it transparent and blend in well with the other icons.
The first picture I included has a transparent background.

You could separate the Progress Segment from the Ring, and overlay one Glyph on top of the other - so a Font Icon can still be used. This is what is done for the ink toolbar controls

@marcelwgn
Copy link
Collaborator Author

Oh, you're right. Oops. The NavigationView only uses FontIcons right now to avoid an issue where using custom assets wouldn't render on first launch. I think we should avoid using a custom asset in the NavigationView and change the icon to a different font icon.

Ohhhhh, that makes sense. In that case, the question would be, what the new icon would be if we choose to change it. The current item seems like one of the only ones suitable for this use category. We could use
image but I am not sure if it's that good of a choice here.

@marcelwgn
Copy link
Collaborator Author

You could separate the Progress Segment from the Ring, and overlay one Glyph on top of the other - so a Font Icon can still be used. This is what is done for the ink toolbar controls

But are these distinct parts available as font icons? In addition to that, I am not 100% sure if we would be able to load them from the JSON or if we would need to adjust the current "icon" loading process.

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

You could separate the Progress Segment from the Ring, and overlay one Glyph on top of the other - so a Font Icon can still be used. This is what is done for the ink toolbar controls

But are these distinct parts available as font icons? In addition to that, I am not 100% sure if we would be able to load them from the JSON or if we would need to adjust the current "icon" loading process.

I just drew those icons ideas in figma - does the gallery just use Segoe MDL2, or a custom font?

@marcelwgn
Copy link
Collaborator Author

I just drew those icons ideas in figma - does the gallery just use Segoe MDL2, or a custom font?

In it's current form, we only use the Segoe MDL2 Assets font.

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

I just drew those icons ideas in figma - does the gallery just use Segoe MDL2, or a custom font?

In it's current form, we only use the Segoe MDL2 Assets font.

That is gonna become problematic as the pace of updates outstrips that of the font. Not to mention the new Fluent Icons only available as SVGs for now

@stmoy
Copy link
Contributor

stmoy commented Jul 7, 2020

That is gonna become problematic as the pace of updates outstrips that of the font. Not to mention the new Fluent Icons only available as SVGs for now

Agreed, but this is a separate issue from the one that @chingucoding is trying to fix 😅

@marcelwgn
Copy link
Collaborator Author

Yes, another thing is that we only need a small icon now as the progressring icon is used for one of the categories.
However given that with hierarchical NavigationView, we also show the icons of every control in the NavView now, we should optimize for that too:

image

@mdtauk
Copy link

mdtauk commented Jul 7, 2020

That is gonna become problematic as the pace of updates outstrips that of the font. Not to mention the new Fluent Icons only available as SVGs for now

Agreed, but this is a separate issue from the one that @chingucoding is trying to fix 😅

Yes, another thing is that we only need a small icon now as the progressring icon is used for one of the categories.
However given that with hierarchical NavigationView, we also show the icons of every control in the NavView now, we should optimize for that too:

image

Sure. It would also be good to synchronise the icons used in the controls gallery, with the icons used in Visual Studio for the SDK - and so more flexibility with icon formatting (multiple colours) would be ideal

@stmoy
Copy link
Contributor

stmoy commented Jul 10, 2020

@chingucoding - what about U+E8F2 for the NavigationView icon?

image

@marcelwgn
Copy link
Collaborator Author

Pushed the image, thanks for providing the new images @stmoy and thank you for your efforts and help @mdtauk .

The new icons you showed @mdtauk look great! If you want we can update them holistically in a separate PR if @stmoy is fine with that.

@stmoy
Copy link
Contributor

stmoy commented Jul 10, 2020

@chingucoding - is ProgressIcon used anymore? If not, can it be removed?

@marcelwgn
Copy link
Collaborator Author

marcelwgn commented Jul 10, 2020

@chingucoding - is ProgressIcon used anymore? If not, can it be removed?

I can't find any "ProgressIcon" in the XCG code 😅 Or am I missing something here?

@stmoy
Copy link
Contributor

stmoy commented Jul 10, 2020

@marcelwgn
Copy link
Collaborator Author

Ohhh right, yes that's not needed anymore. Removed it. Totally forgot that.

Copy link
Contributor

@stmoy stmoy left a comment

Choose a reason for hiding this comment

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

I had this image leftover from a previous PR that you did @chingucoding

image

@marcelwgn
Copy link
Collaborator Author

Haha love it, thank you @stmoy !

@stmoy stmoy merged commit ec49ed4 into microsoft:master Jul 10, 2020
@mdtauk
Copy link

mdtauk commented Jul 11, 2020

I made a somewhat related issue post some time ago in the WinUI repo, but when I am done with the initial set of icons, I guess I can make a new issue here for it.

microsoft/microsoft-ui-xaml#1204

image
image

@marcelwgn
Copy link
Collaborator Author

Those new items look awesome! Would you like me to create a tracking issue in this repo to update them once you are finished and happy with the new icons?

@mdtauk
Copy link

mdtauk commented Jul 11, 2020

Those new items look awesome! Would you like me to create a tracking issue in this repo to update them once you are finished and happy with the new icons?

Hold off until I have a complete set - I may have to do simplified 16px versions as the scaling just does not play nice - but the 72, 48, 24 should work find with these vector shapes.

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Ok so I think this is everything included in the Gallery's assets. I am posting it here - each icon at 72x72 and 16x16 size - and they should work on Light and Dark backgrounds.

@chingucoding @stmoy @YuliKl

Any which stand out as odd or wrong, or any feedback in particular would be welcome, before making a separate proposal.

All New Fluent WinUI Gallery Icons

@marcelwgn marcelwgn deleted the progressring-updates branch July 12, 2020 11:50
@marcelwgn
Copy link
Collaborator Author

Can you add labels for the icons, that is what icon would correspond to which control? Also I am not sure if the color palette would be the best image for RadioalGradientBrush. Another question, was there a specific reason for going more dark themed icons?

Beside that, those new icons look really good!

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Can you add labels for the icons, that is what icon would correspond to which control? Also I am not sure if the color palette would be the best image for RadioalGradientBrush. Another question, was there a specific reason for going more dark themed icons?

Beside that, those new icons look really good!

I was trying to find an approach that worked equally well for Light and Dark themes - these read well on both to me, but all of it is changeable of course.

Here is the Figma file with the icons in. They are in Frames with names on. I used the Treeview from the Gallery app to sort them. The RadialGradientBrush is in the motion section for whatever reason - I think it should probably go into Styles however.

Shared WinUI Gallery Icons.zip

EDIT: Here are the colours inverted quickly in Photoshop - if that seems a better approach?
image
image

@marcelwgn
Copy link
Collaborator Author

Oh yes, RadialGradientBrush is in the style section now, but not in the store version yet I think.
I think light themed icons are more "friendly" and more "inviting", but that's just my opinion.

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Oh yes, RadialGradientBrush is in the style section now, but not in the store version yet I think.
I think light themed icons are more "friendly" and more "inviting", but that's just my opinion.

Here are the icons with the colours inverted.
All New Fluent WinUI Gallery Icons - Inverted

EDIT: Inverted version of the Figma added
Shared WinUI Gallery Icons Inverted.zip

@marcelwgn
Copy link
Collaborator Author

marcelwgn commented Jul 12, 2020

Those look awesome! Thank you for helping and making those. @stmoy What do you think?

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

I fixed the Gradient Icon, and added the Figma with the inverted colours

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Labels Added
All New Fluent WinUI Gallery Icons - Inverted
Shared WinUI Gallery Icons Inverted.zip

I will say I am a little concerned that the icons - now inverted - may appear very stark in the Dark Theme - where as the un-inverted versions, wont appear too harsh with the Light Theme...

@marcelwgn
Copy link
Collaborator Author

Thank you for the updated version with labels. Regarding your dark theme concern, this is how it looks like with a dark background:

image

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Thank you for the updated version with labels. Regarding your dark theme concern, this is how it looks like with a dark background:

image

At a first glance it appears fine, but after long periods?

I know this is part of the reason colours are reduced with Dark Mode UI.

I could be overthinking it perhaps?

@marcelwgn
Copy link
Collaborator Author

At a first glance it appears fine, but after long periods?

I know this is part of the reason colours are reduced with Dark Mode UI.

I could be overthinking it perhaps?

That's a good point. I don't think that you are overthinking this, it is definitely a valid concern. Currently the icons have around the same brightness:

image

I suppose it was fine back then, so it is now? I never felt that the icons are too bright over time, especially since you actually don't spend too much time with them. Generally you search for a page and visit said page, and are looking to much at those control "overviews".

@mdtauk
Copy link

mdtauk commented Jul 12, 2020

Eitherway, I think the icons work both inverted and un-inverted, so they are out there now if the community and the Repo owners want them.

It would be nice if the Visual Studio toolbox synced with a single set of icons, but that is a much bigger ask 😛

The figma file is there too if tweaks are needed, so I will await comments.

@stmoy
Copy link
Contributor

stmoy commented Jul 14, 2020

Thanks for including this, @mdtauk!

I think we'd want to update both the WinUI icons and the Xaml Controls Gallery icons at the same time. CC: @ranjeshj - thoughts on cost to do this?

I think the next steps would be to file one more issue on the XCG repo saying "update the icons alongside microsoft/microsoft-ui-xaml#1204", and include a link to all of the image assets. I think two issues are appropriate and they should probably be done at around the same time.

CC: @chigy for visibility as well

@mdtauk
Copy link

mdtauk commented Jul 15, 2020

@stmoy Do you need me to make an issue for this, or is that something you will be doing?

@stmoy
Copy link
Contributor

stmoy commented Jul 16, 2020

Filed: #504

bpulliam pushed a commit that referenced this pull request Feb 1, 2022
* Update image, fix issues with progressring page

* Update images

* Update images

* Update new status of progress controls

* Switch icon in NavView

* Add updated image

* Remove unused icon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProgressRing code sample is missing muxc namespace
4 participants