feat: init adwaita

This commit is contained in:
Ashley Wulber 2022-08-10 10:48:20 -04:00
parent d03966ae42
commit d9212b2285
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
23 changed files with 85 additions and 10 deletions

View file

@ -7,6 +7,7 @@ edition = "2021"
[dependencies]
gtk4 = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_2"] }
adw = { git = "https://gitlab.gnome.org/World/Rust/libadwaita-rs", package = "libadwaita"}
libcosmic-applet = { path = "../../libcosmic-applet" }
once_cell = "1.9.0"
relm4-macros = { git = "https://github.com/Relm4/Relm4.git", branch = "next" }

View file

@ -41,8 +41,9 @@ fn row_clicked(_: &ListBox, row: &ListBoxRow) {
}
fn main() {
gtk4::init().unwrap();
let _ = gtk4::init();
adw::init();
let provider = gtk4::CssProvider::new();
provider.load_from_data(include_bytes!("style.css"));
gtk4::StyleContext::add_provider_for_display(