mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 10:01:39 +01:00
Implement Microphone UI
Improve Audio UI You won't believe what happened (gone sexual)
This commit is contained in:
parent
d07180e2c7
commit
35c58e2fcd
36 changed files with 1380 additions and 399 deletions
27
src/components/output/audioBox.rs
Normal file
27
src/components/output/audioBox.rs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use glib::subclass::prelude::ObjectSubclassIsExt;
|
||||
use glib::Variant;
|
||||
use gtk::prelude::ActionableExt;
|
||||
use crate::components::base::listEntry::ListEntry;
|
||||
use crate::components::output::audioBoxImpl;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct AudioBox(ObjectSubclass<audioBoxImpl::AudioBox>)
|
||||
@extends gtk::Box, gtk::Widget,
|
||||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
|
||||
}
|
||||
|
||||
impl AudioBox {
|
||||
pub fn new() -> Self {
|
||||
Object::builder().build()
|
||||
}
|
||||
|
||||
pub fn setupCallbacks(&self) {
|
||||
let selfImp = self.imp();
|
||||
selfImp.resetSinksRow.set_action_name(Some("navigation.push"));
|
||||
selfImp.resetSinksRow.set_action_target_value(Some(&Variant::from("outputDevices")));
|
||||
|
||||
selfImp.resetOutputStreamButton.set_action_name(Some("navigation.pop"));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue