diff --git a/src/app/browser/window/tab/item/page/search/form.rs b/src/app/browser/window/tab/item/page/search/form.rs index 6203221c..d287d4c3 100644 --- a/src/app/browser/window/tab/item/page/search/form.rs +++ b/src/app/browser/window/tab/item/page/search/form.rs @@ -1,6 +1,7 @@ mod input; mod match_case; mod navigation; +mod separator; use super::Subject; use input::Input; @@ -29,6 +30,7 @@ impl Form { let input = Rc::new(Input::new()); let match_case = match_case::new(); let navigation = Rc::new(Navigation::new()); + let separator = separator::new(); // Init main container let g_box = Box::builder() @@ -41,6 +43,7 @@ impl Form { g_box.append(&input.entry); g_box.append(&navigation.g_box); g_box.append(&match_case); + g_box.append(&separator); // Connect events input.entry.connect_changed({ diff --git a/src/app/browser/window/tab/item/page/search/form/separator.rs b/src/app/browser/window/tab/item/page/search/form/separator.rs new file mode 100644 index 00000000..9071d7d7 --- /dev/null +++ b/src/app/browser/window/tab/item/page/search/form/separator.rs @@ -0,0 +1,12 @@ +use gtk::Separator; + +const MARGIN: i32 = 6; + +pub fn new() -> Separator { + Separator::builder() + .margin_bottom(MARGIN) + .margin_end(MARGIN) + .margin_start(MARGIN) + .margin_top(MARGIN) + .build() +}