20 lines
323 B
Rust
Raw Normal View History

2024-09-20 18:02:10 +03:00
mod subject;
mod tray;
2024-09-19 11:29:03 +03:00
2024-09-22 12:38:13 +03:00
use std::sync::Arc;
2024-09-18 20:33:29 +03:00
use gtk::HeaderBar;
2024-09-22 12:38:13 +03:00
pub struct Header {
pub widget: Arc<gtk::HeaderBar>,
}
pub fn new() -> Header {
let widget = Arc::new(HeaderBar::builder().build());
widget.pack_start(&tray::new());
widget.set_title_widget(Some(&subject::new()));
2024-09-19 11:29:03 +03:00
2024-09-22 12:38:13 +03:00
Header { widget }
2024-09-20 18:02:10 +03:00
}