diff options
author | 2024-09-05 21:17:44 +1200 | |
---|---|---|
committer | 2024-09-05 11:17:44 +0200 | |
commit | d1ceada11996a0137e8fb4377f1011af3f08d24f (patch) | |
tree | 956b66d74ebc516155d7bc60c73ff78c3e95fc0d /core | |
parent | 6009420b57933ccf799f1b7eac8debab950cdd5e (diff) | |
download | iced-d1ceada11996a0137e8fb4377f1011af3f08d24f.tar.gz iced-d1ceada11996a0137e8fb4377f1011af3f08d24f.tar.bz2 iced-d1ceada11996a0137e8fb4377f1011af3f08d24f.zip |
add option for undecorated_shadow on windows (#2285)
* add option for undecorated_shadow on windows
* formated
Diffstat (limited to '')
-rw-r--r-- | core/src/window/settings/windows.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/window/settings/windows.rs b/core/src/window/settings/windows.rs index 88fe2fbd..a47582a6 100644 --- a/core/src/window/settings/windows.rs +++ b/core/src/window/settings/windows.rs @@ -8,6 +8,12 @@ pub struct PlatformSpecific { /// Whether show or hide the window icon in the taskbar. pub skip_taskbar: bool, + + /// Shows or hides the background drop shadow for undecorated windows. + /// + /// The shadow is hidden by default. + /// Enabling the shadow causes a thin 1px line to appear on the top of the window. + pub undecorated_shadow: bool, } impl Default for PlatformSpecific { @@ -15,6 +21,7 @@ impl Default for PlatformSpecific { Self { drag_and_drop: true, skip_taskbar: false, + undecorated_shadow: false, } } } |