mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
update header mod api
This commit is contained in:
parent
83040ada79
commit
080e07da94
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ pub struct Browser {
|
||||||
|
|
||||||
pub fn new(app: &Application, db: Arc<sqlite::Connection>, width: i32, height: i32) -> Browser {
|
pub fn new(app: &Application, db: Arc<sqlite::Connection>, width: i32, height: i32) -> Browser {
|
||||||
// Init components
|
// Init components
|
||||||
|
let header = Arc::new(header::new());
|
||||||
let main = Arc::new(main::new());
|
let main = Arc::new(main::new());
|
||||||
|
|
||||||
// Init widget
|
// Init widget
|
||||||
|
|
@ -25,7 +26,7 @@ pub fn new(app: &Application, db: Arc<sqlite::Connection>, width: i32, height: i
|
||||||
.default_width(width)
|
.default_width(width)
|
||||||
.default_height(height)
|
.default_height(height)
|
||||||
.application(app)
|
.application(app)
|
||||||
.titlebar(&header::new())
|
.titlebar(header.widget.as_ref())
|
||||||
.child(main.widget.as_ref())
|
.child(main.widget.as_ref())
|
||||||
.build(),
|
.build(),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue