Add title and border to settingbox

Fix padding around window
Add some styling
This commit is contained in:
takotori 2023-11-11 14:34:32 +01:00
parent 179a2b44cc
commit 9f3815476d
12 changed files with 313 additions and 258 deletions

View file

@ -10,12 +10,10 @@ use adw::subclass::prelude::ObjectSubclassIsExt;
use dbus::blocking::Connection;
use dbus::Error;
use dbus::Path;
use gtk::glib::{clone, Variant};
use gtk::glib::Variant;
use gtk::prelude::ActionableExt;
use ReSet_Lib::network::network::{AccessPoint, WifiStrength};
use ReSet_Lib::signals::{
AccessPointAdded, AccessPointRemoved, BluetoothDeviceAdded, BluetoothDeviceRemoved,
};
use ReSet_Lib::network::network::AccessPoint;
use ReSet_Lib::signals::{AccessPointAdded, AccessPointRemoved};
use ReSet_Lib::utils::Events;
use crate::components::wifi::wifiBoxImpl;
@ -38,12 +36,8 @@ impl WifiBox {
pub fn setupCallbacks(&self) {
let selfImp = self.imp();
selfImp
.resetSavedNetworks
.set_action_name(Some("navigation.push"));
selfImp
.resetSavedNetworks
.set_action_target_value(Some(&Variant::from("saved")));
selfImp.resetWifiSwitchRow.set_action_name(Some("navigation.push"));
selfImp.resetWifiSwitchRow.set_action_target_value(Some(&Variant::from("saved")))
}
pub fn donotdisturb() {