Skip to content

Commit 463df87

Browse files
committed
add some spacing to improve speration
1 parent 0a17b3e commit 463df87

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

src/main.rs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,21 @@ impl State {
152152
.view()
153153
.map(|s: ModuleMessage| Message::PluginMessage(s));
154154

155-
let root_continer = widget::container(widget::column![text_input, result])
156-
.style(|theme| {
157-
let mut base_theme = widget::container::bordered_box(theme);
158-
base_theme.border = iced::Border {
159-
radius: 15.0.into(),
160-
..base_theme.border
161-
};
162-
base_theme
163-
})
164-
.padding(10)
165-
.align_top(iced::Fill);
155+
let root_continer = widget::container(widget::column![
156+
text_input,
157+
widget::space().height(8),
158+
result
159+
])
160+
.style(|theme| {
161+
let mut base_theme = widget::container::bordered_box(theme);
162+
base_theme.border = iced::Border {
163+
radius: 15.0.into(),
164+
..base_theme.border
165+
};
166+
base_theme
167+
})
168+
.padding(10)
169+
.align_top(iced::Fill);
166170

167171
let mouse = widget::mouse_area(root_continer).on_press(Message::ShouldDrag);
168172

@@ -254,7 +258,7 @@ fn main() -> iced::Result {
254258
.decorations(false)
255259
.antialiasing(true)
256260
.transparent(true)
257-
.window_size((800.0, 320.0))
261+
.window_size((800.0, 330.0))
258262
.theme(State::theme)
259263
// .theme(|s| iced::theme::Theme::CatppuccinMocha)
260264
// .theme(|_s| {

0 commit comments

Comments
 (0)