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

support AboutMetadata on macos #66

Merged
merged 14 commits into from
Jun 19, 2023
Merged

Conversation

mxsdev
Copy link
Contributor

@mxsdev mxsdev commented Jun 19, 2023

Passes AboutMetadata to the About predefined menu type. Data is passed through to orderFrontStandardAboutPanelWithOptions.

I had to introduce a few new fields to support e.g. NSAboutPanelOptionApplicationIcon.

src/predefined.rs Outdated Show resolved Hide resolved
src/platform_impl/macos/mod.rs Outdated Show resolved Hide resolved
src/predefined.rs Outdated Show resolved Hide resolved
src/predefined.rs Outdated Show resolved Hide resolved
src/platform_impl/macos/mod.rs Outdated Show resolved Hide resolved
src/predefined.rs Show resolved Hide resolved
src/platform_impl/macos/mod.rs Show resolved Hide resolved
@amrbashir
Copy link
Member

Thanks for your contribution, this is really awesome to see.

src/platform_impl/macos/mod.rs Outdated Show resolved Hide resolved
src/predefined.rs Outdated Show resolved Hide resolved
@mxsdev
Copy link
Contributor Author

mxsdev commented Jun 19, 2023

EDIT: seems I was using icon instead of logo in gtk::builders::AboutDialogBuilder. logo is actually correct. Fixed in e3c1dfa 👍

Having some issues with my implementation of icon for linux @amrbashir:

image

Am I initializing the image wrong? It works fine on osx.

            icon: Some(Icon::from_rgba(vec![255; 4 * 128 * 128], 128, 128).unwrap()),

Maybe gtk has a specific size requirement here?

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution ❤️

@amrbashir amrbashir merged commit fabbbac into tauri-apps:dev Jun 19, 2023
5 of 6 checks passed
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.

2 participants