update libcosmic: adds tooltip support

This commit is contained in:
Ashley Wulber 2025-02-26 14:23:53 -05:00 committed by Ashley Wulber
parent 38982176f0
commit 0de336d0d7
16 changed files with 352 additions and 70 deletions

View file

@ -22,6 +22,7 @@ use cosmic::{
},
iced_runtime::core::layout::Limits,
iced_widget::column,
surface_message::{MessageWrapper, SurfaceMessage},
theme,
widget::{divider, text},
Element, Task,
@ -59,6 +60,22 @@ enum Message {
OpenSettings,
DBusUpdate(DBusUpdate),
WaylandUpdate(WaylandUpdate),
Surface(SurfaceMessage),
}
impl From<Message> for MessageWrapper<Message> {
fn from(value: Message) -> Self {
match value {
Message::Surface(s) => MessageWrapper::Surface(s),
m => MessageWrapper::Message(m),
}
}
}
impl From<SurfaceMessage> for Message {
fn from(value: SurfaceMessage) -> Self {
Message::Surface(value)
}
}
impl cosmic::Application for CosmicA11yApplet {
@ -202,6 +219,7 @@ impl cosmic::Application for CosmicA11yApplet {
self.wayland_sender = Some(tx);
}
},
Message::Surface(surface_message) => {}
}
Task::none()
}