Basic app layout
This commit is contained in:
parent
a518251f16
commit
ba677af0f4
3 changed files with 275 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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: >k4::Application) {
|
||||
let window = gtk4::ApplicationWindow::builder()
|
||||
.application(application)
|
||||
.title("COSMIC Network Applet")
|
||||
.default_width(400)
|
||||
.default_height(600)
|
||||
.build();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue