-
Notifications
You must be signed in to change notification settings - Fork 63
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
Iced 0.12 #597
Iced 0.12 #597
Conversation
31f31a9
to
609b6cf
Compare
How does this affect our runtime dependency requirements? |
Does that mean we could maybe drop |
Also, leaving a message here as a reminder: we need to check the Guix build and the MSRV here. Also the build documentation may have to be updated. |
Just leaving a note that we'll target the next release for this, as we are aiming for a v2 feature freeze at the beginning of next week. |
609b6cf
to
1616a9b
Compare
This PR sadly reintroduce the needs for X11 users to have the WINIT_X11_SCALE_FACTOR env var set to 1. |
6cc067d
to
e7cf442
Compare
What does it mean? Why? Could you be a bit clearer and give more context? It's hard to use our judgement otherwise. |
iced uses logical pixels. Sizes are scaled by your monitor's scale factor to target physical pixels during rendering.
which explain why the everything seems too big. We had the same problem at previous liana releases, see the troubleshooting section of the gui readme This issue affects only linux users using X11. |
What's left to do here? Would be nice to get it in early so 1) you don't have to maintain such a large diff across conflicts 2) we can catch any bug early on. |
@kloaec found some problems:
Next version of iced will reintroduce support of WebGL |
Another comment in case we forget about it: we do still rely on your patched |
Right, I removed it for tests, but I think we still need it, there was no fix yet on iced side |
eee4bb2
to
ed7eafd
Compare
12e9820
to
a512177
Compare
860a1ea guix: use Rust 1.70 for release builds (Antoine Poinsot) Pull request description: This is prep work for #597, which bumps the MSRV of the GUI to 1.70. We are being pulled over in two different directions when it comes to our reproducible builds. On the one hand we need to target reasonably old glibc versions in order to be compatible with older systems. On the other hand the immaturity of the Rust ecosystem makes us require bleeding edge versions of the compiler. With Guix to get the newer versions of the compiler we need to also bump the glibc version. This was not a sustainable situation. I was planning for a long time to cleanup our reproducible builds. To create a proper Guix package for both the daemon and the GUI using the build system they provide. I had envisioned this way i could rewrite the inputs of the Guix package to use an older glibc, while being able to bump the Guix time-machine. It would even have allowed us to perform Windows builds inside Guix! And who knows i could even have attempted to perform Apple ones too. Unfortunately it turned out to be more complicated than that. I couldn't manage to get my package to compile using an older glibc. Some details about some of my failed attempts can be found there: https://lists.gnu.org/archive/html/help-guix/2024-04/msg00056.html. Instead of wasting more time on this, backport the newer Rust declarations from up-to-date Guix to Guix-of-our-time-machine. ACKs for top commit: edouardparis: utACK 860a1ea Tree-SHA512: ee0a753376b380c5b39d9cefd6ac49c95d818b3233183f6832df256b93fe5627bf5d9193de1340ae12c0e8e8ec8e5c869674e975d5066723d9d38e66a509cbef
This can be rebased now that #1080 was merged. |
The new branch you use in your Github repo also needs to be updated in the Guix config: diff --git a/contrib/reproducible/guix/build.sh b/contrib/reproducible/guix/build.sh
index 1499723..482632a 100755
--- a/contrib/reproducible/guix/build.sh
+++ b/contrib/reproducible/guix/build.sh
@@ -20,7 +20,7 @@ replace-with = "vendored_sources"
[source."https://github.com/edouardparis/iced"]
git = "https://github.com/edouardparis/iced"
-branch = "fix-futures-recipe"
+branch = "patch-0.12.3"
replace-with = "vendored_sources"
EOF |
@edouardparis a simple |
I have no error running |
Ha! It's the version of Cargo used to vendor which is too old.. |
Please update the PR to include my patch from above #597 (comment). Here are the hashes i get on this PR with my patch by running
|
|
Can you update OP? It's quite confusing to have TODO items while this is going to be merged very soon. |
I updated the OP |
For what it's worth i'm waiting on #1085 to fix CI.. |
4a0db63
to
641985e
Compare
Needs rebase, the last commit is now in master |
to enable the fallback: ICED_BACKEND=tiny-skia cargo run
View is broken because of the long line of text of the descriptor, current fix is to put it behind a scrollable until we find a better way to display it to the user.
ACK 52e32b6 -- it's been tested a bunch, in particular by Kevin. |
9cd36a7 gui: enable advanced text shaping (edouardparis) Pull request description: Set text shaping and font fallback to text widget. It enable Emojis based on #597 ACKs for top commit: edouardparis: Self-ACK 9cd36a7 Tree-SHA512: 1ed1621135c5bfbd624a9cf4bd96385db42d021e8432334429b2ec376d769715920d90d76cc000f43625367bdac85444b131be249197e4fab4d5629c7a0138e1
This PR does the migration from iced 0.9 to iced 0.12.
This new iced version has impact on the fonts size. I reverted the size according to the original UX figma file.
The new backend renderer is the
wgpu
withtiny-skia
as a fallback.wgpu
is the first class citizen of the iced renderers, it supports everything. Thetiny-skia
has some layout problems and does not support some features that is the reason why this PR introduces tiny change in the theme or long string display (ad69711, 88fd0f1).In order to keep the MSRV as low as possible, a custom patch of the crates
iced_winit
,iced_style
,iced_futures
is added to the Cargo.toml