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

fix: Set AppWindow.Title to DisplayName #211

Merged
merged 11 commits into from
Jan 31, 2024
Merged

Conversation

lukeblevins
Copy link
Contributor

@lukeblevins lukeblevins commented Jan 23, 2024

Fixes: #208
Replaces #209

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

On Windows targets, AppWindow currently lacks a default value for its Title property.

In our task for generating window icon, we form the code to retrieve an AppWindow from the XAML Window, using it to conveniently set the generated ico file.

What is the new behavior?

Upon retrieval of AppWindow, set AppWindow.Title to be the app's DisplayName. This value is obtained from the XAML Window instance which has a pre-defined Title property. (defaulting to DisplayName)

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable): N/A

@lukeblevins lukeblevins self-assigned this Jan 23, 2024
@lukeblevins lukeblevins marked this pull request as ready for review January 23, 2024 19:17
pictos and others added 7 commits January 29, 2024 13:42
the xml nodes are immutable, so after setting the value we should read it again
UnoGeneratePackageAppxManifest doesn't exist on other targets, so we changed the UnoGeneratePackageAppxManifest to depend on _GenerateWindowUnoIconExtension target instead
@nickrandolph nickrandolph merged commit 92ed3e5 into main Jan 31, 2024
6 checks passed
@nickrandolph nickrandolph deleted the dev/lubl/set-title branch January 31, 2024 14:34
Copy link

welcome bot commented Jan 31, 2024

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.

Set window title on Windows for running unpackaged
3 participants