update libcosmic: adds tooltip support
This commit is contained in:
parent
38982176f0
commit
0de336d0d7
16 changed files with 352 additions and 70 deletions
|
|
@ -21,6 +21,7 @@ use cosmic::{
|
|||
Length, Limits, Subscription,
|
||||
},
|
||||
iced_core::{Background, Border},
|
||||
surface_message::{SurfaceMessage, MessageWrapper},
|
||||
widget::{autosize, container, horizontal_space, vertical_space, Id},
|
||||
Element, Task, Theme,
|
||||
};
|
||||
|
|
@ -93,6 +94,22 @@ enum Message {
|
|||
WorkspacePressed(ExtWorkspaceHandleV1),
|
||||
WheelScrolled(ScrollDelta),
|
||||
WorkspaceOverview,
|
||||
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 IcedWorkspacesApplet {
|
||||
|
|
@ -215,6 +232,7 @@ impl cosmic::Application for IcedWorkspacesApplet {
|
|||
Message::WorkspaceOverview => {
|
||||
let _ = ShellCommand::new("cosmic-workspaces").spawn();
|
||||
}
|
||||
Message::Surface(surface_message) => unreachable!(),
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue