fix styling and desktop files
This commit is contained in:
parent
1958341a72
commit
8df3019973
10 changed files with 138 additions and 19 deletions
|
|
@ -24,12 +24,22 @@ fn main() {
|
|||
}
|
||||
|
||||
fn build_ui(application: >k4::Application) {
|
||||
let provider = gtk4::CssProvider::new();
|
||||
provider.load_from_data(include_bytes!("style.css"));
|
||||
gtk4::StyleContext::add_provider_for_display(
|
||||
>k4::gdk::Display::default().expect("Could not connect to a display."),
|
||||
&provider,
|
||||
gtk4::STYLE_PROVIDER_PRIORITY_APPLICATION,
|
||||
);
|
||||
|
||||
let window = gtk4::ApplicationWindow::builder()
|
||||
.application(application)
|
||||
.title("COSMIC Network Applet")
|
||||
.default_width(1)
|
||||
.default_height(1)
|
||||
.decorated(false)
|
||||
.resizable(false)
|
||||
.width_request(1)
|
||||
.height_request(1)
|
||||
.css_classes(vec!["root_window".to_string()])
|
||||
.build();
|
||||
|
||||
view! {
|
||||
|
|
@ -65,6 +75,7 @@ fn build_ui(application: >k4::Application) {
|
|||
icon_box = gtk4::Box {
|
||||
set_orientation: Orientation::Vertical,
|
||||
set_spacing: 0,
|
||||
add_css_class: "icon_box",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue