From a490fd54c9b262c9d8ac946f75a0016fbb81848b Mon Sep 17 00:00:00 2001 From: Katherine Philip Date: Mon, 17 Aug 2020 15:38:02 +0700 Subject: Add 'transparent' in window setting --- src/window/settings.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/window/settings.rs b/src/window/settings.rs index 2046f2d9..7bc49ce1 100644 --- a/src/window/settings.rs +++ b/src/window/settings.rs @@ -18,6 +18,9 @@ pub struct Settings { /// Whether the window should have a border, a title bar, etc. or not. pub decorations: bool, + /// Whether the window should be transparent + pub transparent: bool, + /// The icon of the window. pub icon: Option, } @@ -30,6 +33,7 @@ impl Default for Settings { max_size: None, resizable: true, decorations: true, + transparent: false, icon: None, } } @@ -44,6 +48,7 @@ impl From for iced_winit::settings::Window { max_size: settings.max_size, resizable: settings.resizable, decorations: settings.decorations, + transparent: settings.transparent, icon: settings.icon.map(Icon::into), platform_specific: Default::default(), } -- cgit