Implement size_limits for winit
This commit is contained in:
parent
0299878508
commit
ca1469a6b2
2 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,6 @@
|
|||
//! Configure a new COSMIC application.
|
||||
|
||||
use crate::{font, Theme};
|
||||
#[cfg(feature = "wayland")]
|
||||
use iced_core::layout::Limits;
|
||||
use iced_core::Font;
|
||||
|
||||
|
|
@ -51,7 +50,6 @@ pub struct Settings {
|
|||
pub(crate) size: iced::Size,
|
||||
|
||||
/// Limitations of the window size
|
||||
#[cfg(feature = "wayland")]
|
||||
pub(crate) size_limits: Limits,
|
||||
|
||||
/// The theme to apply to the application.
|
||||
|
|
@ -92,7 +90,6 @@ impl Default for Settings {
|
|||
.and_then(|scale| scale.parse::<f32>().ok())
|
||||
.unwrap_or(1.0),
|
||||
size: iced::Size::new(1024.0, 768.0),
|
||||
#[cfg(feature = "wayland")]
|
||||
size_limits: Limits::NONE.min_height(1.0).min_width(1.0),
|
||||
theme: crate::theme::system_preference(),
|
||||
transparent: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue