wip: add applet module

This commit is contained in:
Ashley Wulber 2023-08-08 18:09:57 -04:00 committed by Ashley Wulber
parent a8ce524baa
commit c474b3e955
5 changed files with 323 additions and 3 deletions

View file

@ -6,6 +6,8 @@
//! Check out our [application](https://github.com/pop-os/libcosmic/tree/master/examples/application)
//! example in our repository.
#[cfg(feature = "applet")]
pub mod applet;
pub mod command;
mod core;
pub mod cosmic;
@ -197,6 +199,11 @@ where
fn view_window(&self, id: window::Id) -> Element<Self::Message> {
panic!("no view for window {}", id.0);
}
/// Overrides the default style for applications
fn style(&self) -> Option<<crate::Theme as iced_style::application::StyleSheet>::Style> {
None
}
}
/// Methods automatically derived for all types implementing [`Application`].