Skip to content

feat(ios): add support for setting the background color - #1555

Merged
pewsheen merged 3 commits into
devfrom
feat/ios-bgcolor
May 16, 2025
Merged

feat(ios): add support for setting the background color#1555
pewsheen merged 3 commits into
devfrom
feat/ios-bgcolor

Conversation

@FabianLars

Copy link
Copy Markdown
Member

This is required to get rid of white/black flashes on app launch. ref tauri-apps/tauri#1564

@FabianLars
FabianLars requested a review from a team as a code owner May 2, 2025 15:31
@github-actions

github-actions Bot commented May 2, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through e6016f7

There are 1 changes which include wry with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
wry 0.51.2 0.52.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Comment thread src/wkwebview/mod.rs Outdated
webview.setOpaque(false);

let color = objc2_ui_kit::UIColor::colorWithRed_green_blue_alpha(
(red / 255).into(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should convert the value into a floating point like (red as f64 / 255.0) otherwise the value < 255 will present as 0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

idk how i missed that, did i really only test colors that are close to 0 or 255 in all 3 colors? I mean, i'm colorblind but that's a bit wild 😂

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need a changelog?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes

pewsheen
pewsheen previously approved these changes May 16, 2025
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