mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
init navbar components
This commit is contained in:
parent
38659b45ca
commit
0759f14843
10 changed files with 240 additions and 2 deletions
34
src/app/browser/main/tab/page/navigation/history.rs
Normal file
34
src/app/browser/main/tab/page/navigation/history.rs
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue