Make menu style accessible

This commit is contained in:
0x192 2022-08-27 02:04:33 +02:00 committed by Héctor Ramón Jiménez
parent 4655411256
commit 214f6f9cba
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 11 additions and 0 deletions

View file

@ -174,6 +174,7 @@ pub mod clipboard;
pub mod executor;
pub mod keyboard;
pub mod mouse;
pub mod overlay;
pub mod settings;
pub mod time;
pub mod widget;

10
src/overlay.rs Normal file
View file

@ -0,0 +1,10 @@
//! Build and show dropdown menus.
///
/// This is an alias of an `iced_native` element with a default `Renderer`.
pub mod menu {
pub use iced_native::overlay::menu::{Appearance, State, StyleSheet};
/// A widget that produces a message when clicked.
pub type Menu<'a, Message, Renderer = crate::Renderer> =
iced_native::overlay::Menu<'a, Message, Renderer>;
}