Start on other parts of applet

This commit is contained in:
Lucy 2022-02-02 12:31:30 -05:00
parent dee87d10b6
commit 8e0c636ed3
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
4 changed files with 17 additions and 1 deletions

View file

@ -7,7 +7,7 @@ pub mod task;
pub mod ui;
pub mod widgets;
use gtk4::{gio::ApplicationFlags, prelude::*, Orientation};
use gtk4::{gio::ApplicationFlags, prelude::*, Orientation, Separator};
use once_cell::sync::Lazy;
use tokio::runtime::Runtime;
@ -41,6 +41,10 @@ fn build_ui(application: &gtk4::Application) {
}
}
ui::toggles::add_toggles(&main_box);
main_box.append(&Separator::new(Orientation::Horizontal));
ui::current_networks::add_current_networks(&main_box);
main_box.append(&Separator::new(Orientation::Horizontal));
ui::available_wifi::add_available_wifi(&main_box);
window.set_child(Some(&main_box));
window.show();

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
pub mod available_wifi;
pub mod current_networks;
pub mod toggles;

View file

@ -0,0 +1,5 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
use gtk4::{Label, ScrolledWindow};
pub fn add_available_wifi(target: &gtk4::Box) {}

View file

@ -0,0 +1,5 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
use gtk4::Label;
pub fn add_current_networks(target: &gtk4::Box) {}