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

Add code gen for setting UnoIcon on app Window #133

Merged
merged 5 commits into from
May 11, 2023

Conversation

dansiegel
Copy link
Contributor

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

The developer needs to add native code to set the app's icon on the window

What is the new behavior?

Resizetizer generates a cross platform parameterless extension method on the window allowing the developer to easily set the icon on the window based on the UnoIcon provided.

Also normalizes the white space

@dansiegel dansiegel enabled auto-merge May 11, 2023 15:08
Copy link
Contributor

@pictos pictos left a comment

Choose a reason for hiding this comment

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

Tested on my end and is working... I've just 2 comments, but they don't invalidate the PR

src/.nuspec/Uno.Resizetizer.targets Show resolved Hide resolved
src/Resizetizer/src/WindowIconGeneratorTask.cs Outdated Show resolved Hide resolved
dansiegel and others added 3 commits May 11, 2023 10:31
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Update src/.nuspec/Uno.Resizetizer.targets

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
@pictos
Copy link
Contributor

pictos commented May 11, 2023

@dansiegel the PR is falling with the following message

Error: D:\a\uno.resizetizer\uno.resizetizer\samples\NewTemplate\Resizetizer.Extensions.Sample.Skia.WPF\obj\Debug\net7.0-windows\resizetizer\Uno.Resizetizer.WindowIconExtensions.g.cs(26,4): error CS0234: The type or namespace name 'Win32Interop' does not exist in the namespace 'Microsoft.UI' (are you missing an assembly reference?) 

Did we miss any reference? Or the namespace is different for WPF?

@dansiegel dansiegel merged commit bc95278 into main May 11, 2023
6 checks passed
@dansiegel dansiegel deleted the dev/ds/seticononwindow branch May 11, 2023 22:30
@welcome
Copy link

welcome bot commented May 11, 2023

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

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.

Icon not set on WinUI window
3 participants