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

@ -9,6 +9,7 @@ cascade = "1"
chrono = "0.4"
futures = "0.3"
gtk4 = { git = "https://github.com/gtk-rs/gtk4-rs", features = [ "v4_6" ] }
adw = { git = "https://gitlab.gnome.org/World/Rust/libadwaita-rs", package = "libadwaita"}
libcosmic-applet = { path = "../../libcosmic-applet" }
once_cell = "1.12"
serde = "1"

View file

@ -6,8 +6,9 @@ mod time_button;
use time_button::TimeButton;
fn main() {
gtk4::init().unwrap();
let _ = gtk4::init();
adw::init();
cascade! {
libcosmic_applet::AppletWindow::new();
..set_child(Some(&TimeButton::new()));