use libadwaita for app & app window

This commit is contained in:
yggverse 2024-10-09 10:50:41 +03:00
parent e2ab831d57
commit 9e5a2a490c
11 changed files with 57 additions and 47 deletions

View file

@ -1,3 +1,4 @@
use adw::HeaderBar;
use gtk::{prelude::BoxExt, Box, Notebook, Orientation};
pub struct Widget {
@ -6,8 +7,9 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new(tab: &Notebook) -> Self {
pub fn new(header: &HeaderBar, tab: &Notebook) -> Self {
let gobject = Box::builder().orientation(Orientation::Vertical).build();
gobject.append(header);
gobject.append(tab);
Self { gobject }