summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-05-25 23:37:14 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-25 23:37:14 +0200
commitc61a4cc21ca4d5019cd10df2f316ebbdb24061f1 (patch)
treeaba611186298650931cd818d56e21feff35f974f /src
parent6c6930b91df0d7637ed6c0f3f4e57a03c5e5896f (diff)
parent70fd296ccc69ae135bfbe693b8404d5409ae4332 (diff)
downloadiced-c61a4cc21ca4d5019cd10df2f316ebbdb24061f1.tar.gz
iced-c61a4cc21ca4d5019cd10df2f316ebbdb24061f1.tar.bz2
iced-c61a4cc21ca4d5019cd10df2f316ebbdb24061f1.zip
Merge pull request #1738 from nicoburns/update-winit-0.28
Update to winit 0.28
Diffstat (limited to 'src')
-rw-r--r--src/window/settings.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window/settings.rs b/src/window/settings.rs
index 3c8da62f..458b9232 100644
--- a/src/window/settings.rs
+++ b/src/window/settings.rs
@@ -1,4 +1,4 @@
-use crate::window::{Icon, Position};
+use crate::window::{Icon, Level, Position};
pub use iced_winit::settings::PlatformSpecific;
@@ -29,8 +29,8 @@ pub struct Settings {
/// Whether the window should be transparent.
pub transparent: bool,
- /// Whether the window will always be on top of other windows.
- pub always_on_top: bool,
+ /// The window [`Level`].
+ pub level: Level,
/// The icon of the window.
pub icon: Option<Icon>,
@@ -50,7 +50,7 @@ impl Default for Settings {
resizable: true,
decorations: true,
transparent: false,
- always_on_top: false,
+ level: Level::default(),
icon: None,
platform_specific: Default::default(),
}
@@ -68,7 +68,7 @@ impl From<Settings> for iced_winit::settings::Window {
resizable: settings.resizable,
decorations: settings.decorations,
transparent: settings.transparent,
- always_on_top: settings.always_on_top,
+ level: settings.level,
icon: settings.icon.map(Icon::into),
platform_specific: settings.platform_specific,
}