fix: winit feature gate
This commit is contained in:
parent
1fafd57578
commit
fb4628e460
1 changed files with 7 additions and 2 deletions
|
|
@ -9,7 +9,6 @@ use cosmic_theme::ThemeMode;
|
||||||
use enumflags2::{self, BitFlags, bitflags};
|
use enumflags2::{self, BitFlags, bitflags};
|
||||||
use iced::{Limits, Size, window};
|
use iced::{Limits, Size, window};
|
||||||
use iced_core::window::Id;
|
use iced_core::window::Id;
|
||||||
use iced_winit::SurfaceIdWrapper;
|
|
||||||
use palette::Srgba;
|
use palette::Srgba;
|
||||||
use slotmap::Key;
|
use slotmap::Key;
|
||||||
|
|
||||||
|
|
@ -588,7 +587,13 @@ impl Core {
|
||||||
self.app_type
|
self.app_type
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn blur(&self, theme: &Theme, surface_id_wrapper: Option<SurfaceIdWrapper>) -> bool {
|
#[cfg(feature = "winit")]
|
||||||
|
pub fn blur(
|
||||||
|
&self,
|
||||||
|
theme: &Theme,
|
||||||
|
surface_id_wrapper: Option<iced_winit::SurfaceIdWrapper>,
|
||||||
|
) -> bool {
|
||||||
|
use iced_winit::SurfaceIdWrapper;
|
||||||
let theme = theme.cosmic();
|
let theme = theme.cosmic();
|
||||||
match surface_id_wrapper {
|
match surface_id_wrapper {
|
||||||
Some(SurfaceIdWrapper::LayerSurface(_)) => {
|
Some(SurfaceIdWrapper::LayerSurface(_)) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue