Patches for redox
This commit is contained in:
parent
66c8174bea
commit
b320c450e3
2 changed files with 3 additions and 11 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -6679,7 +6679,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "winit"
|
name = "winit"
|
||||||
version = "0.29.10"
|
version = "0.29.10"
|
||||||
source = "git+https://github.com/pop-os/winit.git?branch=winit-0.29#8987daa8e6a860b8927e040076482cd63b6e734f"
|
source = "git+https://github.com/pop-os/winit.git?branch=winit-0.29#bdc66109acc85c912264c9e4b864520345bdb45f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"android-activity",
|
"android-activity",
|
||||||
|
|
|
||||||
12
src/main.rs
12
src/main.rs
|
|
@ -11,7 +11,7 @@ use cosmic::{
|
||||||
keyboard::{self, Modifiers},
|
keyboard::{self, Modifiers},
|
||||||
subscription,
|
subscription,
|
||||||
widget::text,
|
widget::text,
|
||||||
window, Alignment, Background, Color, Length, Point,
|
window, Alignment, Background, Color, Length, Limits, Point,
|
||||||
},
|
},
|
||||||
style, theme,
|
style, theme,
|
||||||
widget::{self, button, icon, nav_bar, segmented_button, view_switcher},
|
widget::{self, button, icon, nav_bar, segmented_button, view_switcher},
|
||||||
|
|
@ -149,15 +149,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
|
||||||
let mut settings = Settings::default();
|
let mut settings = Settings::default();
|
||||||
settings = settings.theme(config.app_theme.theme());
|
settings = settings.theme(config.app_theme.theme());
|
||||||
|
settings = settings.size_limits(Limits::NONE.min_width(360.0).min_height(180.0));
|
||||||
#[cfg(target_os = "redox")]
|
|
||||||
{
|
|
||||||
// Redox does not support resize if doing CSDs
|
|
||||||
settings = settings.client_decorations(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
//TODO: allow size limits on iced_winit
|
|
||||||
//settings = settings.size_limits(Limits::NONE.min_width(400.0).min_height(200.0));
|
|
||||||
|
|
||||||
let flags = Flags {
|
let flags = Flags {
|
||||||
config_handler,
|
config_handler,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue