Create the basic user interface mockup for a GM control panel #63

Merged
savanni merged 5 commits from gm-control-panel into main 2023-08-19 23:52:23 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit e203b17c8b - Show all commits

View File

@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [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 = { path = "../config" }
config-derive = { path = "../config-derive" } config-derive = { path = "../config-derive" }
futures = { version = "0.3" } futures = { version = "0.3" }

View File

@ -13,7 +13,10 @@ pub struct ApplicationWindow {
impl ApplicationWindow { impl ApplicationWindow {
pub fn new(app: &adw::Application) -> Self { 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( let stylesheet = String::from_utf8(
resources_lookup_data( resources_lookup_data(