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
50
src/app/browser/main/tab/page/navigation.rs
Normal file
50
src/app/browser/main/tab/page/navigation.rs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
#[path = "navigation/base.rs"] mod base;
|
||||
#[path = "navigation/history.rs"] mod history;
|
||||
#[path = "navigation/reload.rs"] mod reload;
|
||||
#[path = "navigation/request.rs"] mod request;
|
||||
#[path = "navigation/bookmark.rs"] mod bookmark;
|
||||
|
||||
use gtk::Box;
|
||||
use gtk::prelude::BoxExt;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
let navigation = Box::builder()
|
||||
|
||||
// Tuneup
|
||||
.orientation(
|
||||
gtk::Orientation::Horizontal
|
||||
)
|
||||
|
||||
.spacing(8)
|
||||
|
||||
.margin_top(8)
|
||||
.margin_start(8)
|
||||
.margin_end(8)
|
||||
.margin_bottom(8)
|
||||
|
||||
.build();
|
||||
|
||||
// Compose childs
|
||||
navigation.append(
|
||||
&base::new()
|
||||
);
|
||||
|
||||
navigation.append(
|
||||
&history::new()
|
||||
);
|
||||
|
||||
navigation.append(
|
||||
&reload::new()
|
||||
);
|
||||
|
||||
navigation.append(
|
||||
&request::new()
|
||||
);
|
||||
|
||||
navigation.append(
|
||||
&bookmark::new()
|
||||
);
|
||||
|
||||
return navigation;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue