Skip to content

Commit 170a310

Browse files
committed
fix border radius to match compositor
1 parent 6e2fd32 commit 170a310

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,15 @@ impl State {
153153
.map(|s: ModuleMessage| Message::PluginMessage(s));
154154

155155
let root_continer = widget::container(widget::column![text_input, result])
156-
.style(widget::container::bordered_box)
156+
.style(|theme| {
157+
let mut base_theme = widget::container::bordered_box(theme);
158+
base_theme.border = iced::Border {
159+
color: base_theme.border.color,
160+
width: base_theme.border.width,
161+
radius: 15.0.into(),
162+
};
163+
base_theme
164+
})
157165
.padding(10)
158166
.align_top(iced::Fill);
159167

0 commit comments

Comments
 (0)