Basic app layout

This commit is contained in:
Lucy 2022-02-01 14:10:15 -05:00
parent a518251f16
commit ba677af0f4
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
3 changed files with 275 additions and 1 deletions

View file

@ -5,5 +5,8 @@ edition = "2021"
license = "LGPL-3.0-or-later"
[dependencies]
cosmic-dbus-networkmanager = { git = "https://github.com/pop-os/dbus-settings-bindings" }
gtk4 = "0.4.6"
relm4-macros = "0.4.1"
tokio = { version = "1.15.0", features = ["full"] }
zbus = "2.0.1"

View file

@ -1,3 +1,22 @@
use gtk4::{
gdk::Display, gio::ApplicationFlags, prelude::*, CssProvider, StyleContext,
STYLE_PROVIDER_PRIORITY_APPLICATION,
};
fn main() {
println!("Hello, world!");
let application = gtk4::Application::new(
Some("com.system76.cosmic.applets.network"),
ApplicationFlags::default(),
);
application.connect_activate(build_ui);
application.run();
}
fn build_ui(application: &gtk4::Application) {
let window = gtk4::ApplicationWindow::builder()
.application(application)
.title("COSMIC Network Applet")
.default_width(400)
.default_height(600)
.build();
}