mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
init header components
This commit is contained in:
parent
0759f14843
commit
0c8684491b
7 changed files with 210 additions and 1 deletions
32
src/app/browser/header/subject.rs
Normal file
32
src/app/browser/header/subject.rs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#[path = "subject/title.rs"] mod title;
|
||||
#[path = "subject/description.rs"] mod description;
|
||||
|
||||
use gtk::Box;
|
||||
use gtk::prelude::BoxExt;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
let subject = Box::builder()
|
||||
|
||||
// Tuneup
|
||||
.orientation(
|
||||
gtk::Orientation::Vertical
|
||||
)
|
||||
|
||||
.valign(
|
||||
gtk::Align::Center
|
||||
)
|
||||
|
||||
.build();
|
||||
|
||||
// Compose childs
|
||||
subject.append(
|
||||
&title::new()
|
||||
);
|
||||
|
||||
subject.append(
|
||||
&description::new()
|
||||
);
|
||||
|
||||
return subject;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue