-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update iced to 13.0 #50
Update iced to 13.0 #50
Conversation
also FYI, you can ignore the first commit about switching picklist to combobox, I messed up my branch creation and I removed those changes manually |
This looks pretty good at first glance! I'll give it a more detailed review later.
The
That seems weird, I'll have to take a look at the changelog later to see what's up with that.
I've had to disable the |
yeah, I figured there was a reason for already being disabled...
I think I tested it as well since it was supposed to be a fallback or something, I just retested it this morning and it works with only
I agree that it is strange, since I haven't found any way to get the id of the window. it could also just be me who misinterpreted the docs. |
I did find something about the rendering issue in the iced discord, I just searched for "white screen" and found some posts/threads about it. https://discord.com/channels/628993209984614400/1021828532189528094/1253448493247369348 what renderer are we using in MHMW if it's not wgpu or tiny-skia? |
We're using the tiny-skia renderer. It just wasn't behind a feature gate before iced 13. |
i've looked at the documentation about the removal of the I think the next step would be to define what manual tests are required before merging this. |
I was just doing it that way because I was considering moving to a multi-window design at one point. I think we can just remove the check for now, and revisit it in case we ever do add extra windows.
I'm going to be honest, the amount of testing you've already done is more than I typically do for dependency upgrades 😅 |
Thats fair, my bad... work habits I guess. I'm used to doing lots of testing before merging stuff, I wouldn't want to break anything on master branch... but I appreciate you letting me know about it Then ill remove the draft. thanks |
Finally got time to properly review this now. I found the relevant change for the removal of window ID fields: iced-rs/iced#2456 — it seems like the expected way to get window IDs now is using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, there was another small issue that I've fixed, the PR was changing the window size of the updater (probably copy/paste error). This seems good to go now, thank you again for leading the effort on this upgrade!
Sounds good, thanks for looking into it!
this does ring a bell indeed. probably copy/paste like you said, my bad. |
ill rebase my fork and try to sneak in the searchable room name picklist before your next release |
update iced dependency to 13.0
This is the release note, but I'll try to explain the changes required as best as I can:
iced::advanced::Hasher
was moved toiced::advanced::Subscription::Hasher
.image::Handle::from_memory
was renamed toimage::Handle::from_bytes
.Command API
was changed toTask API
which resulted in changingCommand
toTask
. For most of the uses, not much was required, but I do have some concerns about thecmd()
function that is used in the installer/updater/gui since I haven't worked a lot with the Command/Task API.Application::run
withiced::application().run_with()
and added a bunch of builders to set the settings and default state for each app.Id
parameter from theCloseRequested
event and changed theId
structure (theId::MAIN
constant was removed), so I had to find another way to close the window.iced_runtime
was no longer used after my changes so I removed it.wgpu
to the feature flags since the app was no longer rendered correctly after I bumped the version. I saw thattiny-skia
was used as a fallback in the doc, so I added it too just in case.That's pretty much it, so my biggest concern is the changes to
cmd
functions that are related to theTask
API switch.I haven't fully tested all the ui apps yet, but they seem to work as intended. I'll try to do some more testing.
I think they also changed the default styling a bit, so there might be some minor styling differences, the only ones i found are the radio buttons that are a bit smaller (the left app is iced 13.0), and some padding/margin.
This version introduced the
Stack
widget, and I intended to use it to make a searchablepicklist
for the room name selection (sincecombobox
menu was a bit janky when updating the room list in real-time). most of the work for that feature is already in progress on my side. I realized that this version bump was bigger than I anticipated. so I preferred not to include those changes as well.leaving this as a draft until you have time to check it first. thanks