I'm cooking
This commit is contained in:
parent
e64aee2b31
commit
82c662f00f
16
src/main.rs
16
src/main.rs
@ -1,7 +1,6 @@
|
|||||||
#![feature(iter_map_windows)]
|
#![feature(iter_map_windows)]
|
||||||
use iced::{
|
use iced::{
|
||||||
Element, Task, clipboard,
|
clipboard, widget::{self, button, column, combo_box, row, scrollable::{Direction, Scrollbar}, scrollable, text, text_input}, Element, Length, Task
|
||||||
widget::{self, button, column, combo_box, row, scrollable, text, text_input},
|
|
||||||
};
|
};
|
||||||
use std::{env, fs, path::PathBuf};
|
use std::{env, fs, path::PathBuf};
|
||||||
use texts::*;
|
use texts::*;
|
||||||
@ -163,7 +162,6 @@ impl State {
|
|||||||
|
|
||||||
scrollable(row((0..self.cols).map(|_| {
|
scrollable(row((0..self.cols).map(|_| {
|
||||||
row![
|
row![
|
||||||
button("-"),
|
|
||||||
column![
|
column![
|
||||||
combo_box(
|
combo_box(
|
||||||
&self.files,
|
&self.files,
|
||||||
@ -197,15 +195,15 @@ impl State {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
button(text("+").center())
|
button(text("+").center())
|
||||||
.height(iced::Length::FillPortion(1))
|
.height(Length::Fixed(200.))
|
||||||
.on_press(Message::AddColRight)
|
.on_press(Message::AddColRight)
|
||||||
]
|
]
|
||||||
|
.width(Length::Fixed(800.))
|
||||||
.into()
|
.into()
|
||||||
})))
|
}))
|
||||||
.direction(scrollable::Direction::Both {
|
// .width(Length::Fixed(1000.))
|
||||||
vertical: scrollable::Scrollbar::new(),
|
)
|
||||||
horizontal: scrollable::Scrollbar::new(),
|
.direction(Direction::Both { vertical: Scrollbar::new(), horizontal: Scrollbar::new() })
|
||||||
})
|
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user