This commit is contained in:
2025-07-06 12:08:49 +02:00
parent 6654c51d2c
commit a1a78134dc

View File

@@ -10,7 +10,10 @@ use iced::{Application, Element, Settings, Subscription, window};
use iced::{ use iced::{
Color, Length, Task, Theme, Color, Length, Task, Theme,
time::{self, Duration}, time::{self, Duration},
widget::{Column, TextInput, button, canvas, column, container, pick_list, row, slider, text}, widget::{
Column, TextInput, button, canvas, column, container, pick_list, row, scrollable, slider,
text,
},
}; };
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@@ -273,7 +276,7 @@ impl MyApp {
.chain(ngon_options) .chain(ngon_options)
.collect(); .collect();
let polygon_column = Column::with_children(polygon_rows); let polygon_column = scrollable(Column::with_children(polygon_rows));
let mut save_panel: Vec<Element<Message>> = vec![ let mut save_panel: Vec<Element<Message>> = vec![
button("Toggle Save Panel") button("Toggle Save Panel")
.on_press(Message::ToggleSavePanel) .on_press(Message::ToggleSavePanel)
@@ -302,7 +305,7 @@ impl MyApp {
row![ row![
container( container(
canvas(&self.poly_frame) canvas(&self.poly_frame)
.height(Length::FillPortion(2)) .height(Length::FillPortion(1))
.width(Length::FillPortion(1)) .width(Length::FillPortion(1))
), ),
column![ column![
@@ -318,9 +321,10 @@ impl MyApp {
polygon_column.spacing(10), polygon_column.spacing(10),
] ]
.spacing(10) .spacing(10)
.height(Length::FillPortion(2)) .height(Length::FillPortion(1))
.width(Length::FillPortion(2)), .width(Length::FillPortion(2)),
] ]
.height(Length::FillPortion(2))
.spacing(20), .spacing(20),
row![text("futur time line")] row![text("futur time line")]
.height(Length::FillPortion(1)) .height(Length::FillPortion(1))