init navbar components

This commit is contained in:
yggverse 2024-09-19 10:37:16 +03:00
parent 38659b45ca
commit 0759f14843
10 changed files with 240 additions and 2 deletions

View file

@ -0,0 +1,34 @@
#[path = "history/back.rs"] mod back;
#[path = "history/forward.rs"] mod forward;
use gtk::Box;
use gtk::prelude::BoxExt;
pub fn new() -> Box
{
let history = Box::builder()
// Tuneup
.orientation(
gtk::Orientation::Horizontal
)
.css_classes(
[
"linked" // merge childs
]
)
.build();
// Compose childs
history.append(
&back::new()
);
history.append(
&forward::new()
);
return history;
}