add separator

This commit is contained in:
yggverse 2024-12-18 07:11:07 +02:00
parent 96095db415
commit 1017a405d2
2 changed files with 15 additions and 0 deletions

View File

@ -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({

View File

@ -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()
}