Start on other parts of applet
This commit is contained in:
parent
dee87d10b6
commit
8e0c636ed3
4 changed files with 17 additions and 1 deletions
|
|
@ -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: >k4::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();
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
pub mod available_wifi;
|
||||
pub mod current_networks;
|
||||
pub mod toggles;
|
||||
|
|
|
|||
5
applets/cosmic-applet-network/src/ui/available_wifi.rs
Normal file
5
applets/cosmic-applet-network/src/ui/available_wifi.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
use gtk4::{Label, ScrolledWindow};
|
||||
|
||||
pub fn add_available_wifi(target: >k4::Box) {}
|
||||
5
applets/cosmic-applet-network/src/ui/current_networks.rs
Normal file
5
applets/cosmic-applet-network/src/ui/current_networks.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
use gtk4::Label;
|
||||
|
||||
pub fn add_current_networks(target: >k4::Box) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue