Update libcosmic/iced

This commit is contained in:
Ian Douglas Scott 2023-12-04 16:58:51 -08:00
parent 5a452d7ac1
commit ed1b1d8f1c
3 changed files with 230 additions and 249 deletions

460
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -22,7 +22,11 @@ use cosmic::iced::Subscription;
use cosmic::{
app::{Command, Core},
cosmic_config::config_subscription,
iced::{self, event::wayland, event::PlatformSpecific, subscription, window, Length},
iced::{
self,
event::{self, wayland, PlatformSpecific},
window, Length,
},
prelude::*,
widget::{
column, container, icon, nav_bar, navigation, scrollable, search, segmented_button,
@ -167,7 +171,7 @@ impl cosmic::Application for SettingsApp {
}
fn subscription(&self) -> Subscription<Message> {
let window_break = subscription::events_with(|event, _| match event {
let window_break = event::listen_with(|event, _| match event {
iced::Event::PlatformSpecific(PlatformSpecific::Wayland(wayland::Event::Output(
wayland::OutputEvent::Created(Some(info)),
o,

View file

@ -312,7 +312,7 @@ impl Page {
scrollable(
column::with_children(vec![
text(fl!("add-applet")).size(24).width(Length::Fill).into(),
text_input::search_input(&fl!("search-applets"), &self.search)
text_input::search_input(fl!("search-applets"), &self.search)
.on_input(move |s| {
app::Message::PageMessage(msg_map(Message::Search(s)))
})
@ -946,8 +946,13 @@ where
Length::Shrink
}
fn layout(&self, renderer: &cosmic::Renderer, limits: &layout::Limits) -> layout::Node {
let inner_layout = self.inner.as_widget().layout(renderer, limits);
fn layout(
&self,
tree: &mut Tree,
renderer: &cosmic::Renderer,
limits: &layout::Limits,
) -> layout::Node {
let inner_layout = self.inner.as_widget().layout(tree, renderer, limits);
layout::Node::with_children(inner_layout.size(), vec![inner_layout])
}