This commit is contained in:
2025-07-06 12:08:49 +02:00
parent 9abe7a22cb
commit d8403933de

View File

@@ -10,7 +10,10 @@ use iced::{Application, Element, Settings, Subscription, window};
use iced::{
Color, Length, Task, Theme,
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};
@@ -273,7 +276,7 @@ impl MyApp {
.chain(ngon_options)
.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![
button("Toggle Save Panel")
.on_press(Message::ToggleSavePanel)
@@ -302,7 +305,7 @@ impl MyApp {
row![
container(
canvas(&self.poly_frame)
.height(Length::FillPortion(2))
.height(Length::FillPortion(1))
.width(Length::FillPortion(1))
),
column![
@@ -318,9 +321,10 @@ impl MyApp {
polygon_column.spacing(10),
]
.spacing(10)
.height(Length::FillPortion(2))
.height(Length::FillPortion(1))
.width(Length::FillPortion(2)),
]
.height(Length::FillPortion(2))
.spacing(20),
row![text("futur time line")]
.height(Length::FillPortion(1))