Try to set up a title bar

This commit is contained in:
Savanni D'Gerinel 2023-08-18 23:21:46 -04:00
parent 46f850cfb2
commit 416f2387e7
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
adw = { version = "0.4", package = "libadwaita", features = [ "v1_2" ] }
adw = { version = "0.4", package = "libadwaita", features = [ "v1_2", "gtk_v4_6" ] }
config = { path = "../config" }
config-derive = { path = "../config-derive" }
futures = { version = "0.3" }

View File

@ -13,7 +13,10 @@ pub struct ApplicationWindow {
impl ApplicationWindow {
pub fn new(app: &adw::Application) -> Self {
let window = adw::ApplicationWindow::new(app);
let window = adw::ApplicationWindow::builder()
.application(app)
.title("GM-control-panel")
.build();
let stylesheet = String::from_utf8(
resources_lookup_data(