Dynamically add bluetooth devices

Add scrolling for wifi
Improve audio ui a little
This commit is contained in:
takotori 2023-11-02 10:43:37 +01:00
parent 13084ed86d
commit e34e8ce80f
11 changed files with 263 additions and 141 deletions

View file

@ -1,4 +1,4 @@
use gtk::{Align, FlowBox, FlowBoxChild};
use gtk::{Align, FlowBox, FlowBoxChild, Label};
use gtk::prelude::{FlowBoxChildExt, WidgetExt};
use crate::components::audio::audioBox::AudioBox;
use crate::components::bluetooth::bluetoothBox::BluetoothBox;
@ -59,9 +59,9 @@ pub const HANDLE_VOLUME_CLICK: fn(FlowBox) = |resetMain: FlowBox| {
};
pub const HANDLE_MICROPHONE_CLICK: fn(FlowBox) = |resetMain: FlowBox| {
let wifibox = WifiBox::new();
let label = Label::new(Some("not implemented yet"));
resetMain.remove_all();
resetMain.insert(&wifibox, -1);
resetMain.insert(&label, -1);
};
pub const HANDLE_HOME: fn(FlowBox) = |resetMain: FlowBox| {