init header components

This commit is contained in:
yggverse 2024-09-19 11:29:03 +03:00
parent 0759f14843
commit 0c8684491b
7 changed files with 210 additions and 1 deletions

View file

@ -0,0 +1,30 @@
#[path = "tray/menu.rs"] mod menu;
#[path = "tray/tab.rs"] mod tab;
use gtk::Box;
use gtk::prelude::BoxExt;
pub fn new() -> Box
{
let tray = Box::builder()
// Tuneup
.orientation(
gtk::Orientation::Horizontal
)
.spacing(8)
.build();
// Compose childs
tray.append(
&menu::new()
);
tray.append(
&tab::new()
);
return tray;
}