build: update deps

without updating, I had an issue with hardware rendering
that made it fall back to slightly stuttery software rendering each time.

no error messages from iced or wgpu,
but I did get the following when running it with mangohud:
shim: Failed to load from "/nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so": /nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libm.so.6: version `GLIBC_2.44' not found (required by /nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so)
shim: Failed to load from ${ORIGIN}/libMangoHud_opengl.so: /nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libm.so.6: version `GLIBC_2.44' not found (required by /nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so)
This commit is contained in:
electria 2026-10-07 18:29:35 -07:00
commit 903dd4994c
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
4 changed files with 790 additions and 965 deletions

View file

@ -7,7 +7,7 @@ use std::{
};
use iced::{
Alignment, Color, Element, Length, Renderer, Subscription, Task, Theme, clipboard, event,
Alignment, Color, Length, Renderer, Subscription, Task, Theme, Widget, clipboard, event,
keyboard::{self, Key, key},
theme, widget, window,
};
@ -64,7 +64,7 @@ impl State {
(state, Task::none())
}
fn view(&self) -> Element<'_, Message, Theme, Renderer> {
fn view(&self) -> impl Widget<Message, Theme, Renderer> {
let main = self.image_display.as_ref().map_or_else(
|| {
widget::container(widget::text(include_str!("usage.txt")))
@ -72,7 +72,7 @@ impl State {
.width(Length::Fill)
.align_x(Alignment::Center)
.align_y(Alignment::Center)
.into()
.boxed()
},
|allocation| {
widget::image::viewer(allocation.handle().clone())
@ -81,7 +81,7 @@ impl State {
.min_scale(1.)
.width(Length::Fill)
.height(Length::Fill)
.into()
.boxed()
},
);
@ -91,7 +91,7 @@ impl State {
widget::container(widget::text(error).style(widget::text::danger))
.align_x(Alignment::Start)
.width(Length::Fill)
.into(),
.boxed(),
);
}
if self.infobar_shown && self.info.is_some() {
@ -99,11 +99,11 @@ impl State {
widget::container(widget::text(self.title()))
.align_x(Alignment::End)
.width(Length::Fill)
.into(),
.boxed(),
);
}
widget::column([main, widget::row(bar).into()]).into()
widget::column([main, widget::row(bar).boxed()])
}
fn update(&mut self, message: Message) -> Task<Message> {
match message {