mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 10:01:39 +01:00
feat: Add initial Sound Mapping
This commit is contained in:
parent
679b4f0331
commit
5999bb1b45
8 changed files with 206 additions and 52 deletions
|
|
@ -1,6 +1,8 @@
|
|||
use gtk::{Button, CompositeTemplate, glib, Label, ProgressBar, Scale};
|
||||
use gtk::subclass::prelude::*;
|
||||
use std::cell::{Cell, RefCell};
|
||||
|
||||
use crate::components::output::audioSource;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, DropDown, Label, ProgressBar, Scale};
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[derive(Default, CompositeTemplate)]
|
||||
|
|
@ -9,6 +11,8 @@ pub struct AudioSourceEntry {
|
|||
#[template_child]
|
||||
pub resetSourceName: TemplateChild<Label>,
|
||||
#[template_child]
|
||||
pub resetSelectedSink: TemplateChild<DropDown>,
|
||||
#[template_child]
|
||||
pub resetSourceMute: TemplateChild<Button>,
|
||||
#[template_child]
|
||||
pub resetVolumeSlider: TemplateChild<Scale>,
|
||||
|
|
@ -16,6 +20,9 @@ pub struct AudioSourceEntry {
|
|||
pub resetVolumePercentage: TemplateChild<Label>,
|
||||
#[template_child]
|
||||
pub resetVolumeMeter: TemplateChild<ProgressBar>,
|
||||
pub associatedIndex: Cell<u32>,
|
||||
pub isMuted: Cell<bool>,
|
||||
pub volume: RefCell<Vec<u32>>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue