update libcosmic

This commit is contained in:
Ashley Wulber 2023-04-05 20:40:22 -04:00 committed by Ashley Wulber
parent 2c74a551c7
commit 903a5589a3
19 changed files with 2261 additions and 1877 deletions

View file

@ -2,11 +2,12 @@ use cosmic::{
applet::CosmicAppletHelper,
iced::{
self,
wayland::{InitialSurface, SurfaceIdWrapper},
wayland::InitialSurface,
Application,
},
iced_sctk::layout::Limits,
iced_style::application,
iced_native::window,
};
use freedesktop_desktop_entry::DesktopEntry;
use std::{env, fs, process::Command};
@ -41,7 +42,7 @@ impl iced::Application for Button {
String::from("Button")
}
fn close_requested(&self, _id: SurfaceIdWrapper) -> Msg {
fn close_requested(&self, _id: window::Id) -> Msg {
unimplemented!()
}
@ -65,7 +66,7 @@ impl iced::Application for Button {
}
}
fn view(&self, _id: SurfaceIdWrapper) -> cosmic::Element<Msg> {
fn view(&self, _id: window::Id) -> cosmic::Element<Msg> {
// TODO icon?
cosmic::widget::button(cosmic::theme::Button::Text)
.text(&self.desktop.name)