mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-19 02:58:33 +02:00
fix: Use microphone icons for input
This commit is contained in:
parent
b6f447b11c
commit
c659938c50
|
@ -24,8 +24,6 @@ impl OutputStreamEntry {
|
||||||
pub fn new(source_box: Arc<SourceBox>, stream: OutputStream) -> Self {
|
pub fn new(source_box: Arc<SourceBox>, stream: OutputStream) -> Self {
|
||||||
let obj: Self = Object::builder().build();
|
let obj: Self = Object::builder().build();
|
||||||
// TODO use event callback for progress bar -> this is the "im speaking" indicator
|
// TODO use event callback for progress bar -> this is the "im speaking" indicator
|
||||||
// TODO map mute to callback
|
|
||||||
// TODO map dropdown
|
|
||||||
{
|
{
|
||||||
let box_imp = source_box.imp();
|
let box_imp = source_box.imp();
|
||||||
let imp = obj.imp();
|
let imp = obj.imp();
|
||||||
|
@ -112,10 +110,10 @@ impl OutputStreamEntry {
|
||||||
let index = stream.index;
|
let index = stream.index;
|
||||||
if muted {
|
if muted {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("microphone-volume-muted-symbolic");
|
.set_icon_name("microphone-disabled-symbolic");
|
||||||
} else {
|
} else {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("microphone-volume-high-symbolic");
|
.set_icon_name("audio-input-microphone-symbolic");
|
||||||
}
|
}
|
||||||
toggle_output_stream_mute(index, muted);
|
toggle_output_stream_mute(index, muted);
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -167,10 +167,10 @@ pub fn populate_sources(input_box: Arc<SourceBox>) {
|
||||||
let index = stream.index;
|
let index = stream.index;
|
||||||
if muted {
|
if muted {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("audio-volume-muted-symbolic");
|
.set_icon_name("microphone-disabled-symbolic");
|
||||||
} else {
|
} else {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("audio-volume-high-symbolic");
|
.set_icon_name("audio-input-microphone-symbolic");
|
||||||
}
|
}
|
||||||
toggle_source_mute(index, muted);
|
toggle_source_mute(index, muted);
|
||||||
});
|
});
|
||||||
|
@ -450,10 +450,10 @@ pub fn start_input_box_listener(
|
||||||
let imp = entry.imp();
|
let imp = entry.imp();
|
||||||
if ir.stream.muted {
|
if ir.stream.muted {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("microphone-volume-muted-symbolic");
|
.set_icon_name("microphone-disabled-symbolic");
|
||||||
} else {
|
} else {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("microphone-volume-high-symbolic");
|
.set_icon_name("audio-input-microphone-symbolic");
|
||||||
}
|
}
|
||||||
let name = ir.stream.application_name.clone() + ": " + ir.stream.name.as_str();
|
let name = ir.stream.application_name.clone() + ": " + ir.stream.name.as_str();
|
||||||
imp.resetSourceName.set_text(name.as_str());
|
imp.resetSourceName.set_text(name.as_str());
|
||||||
|
|
|
@ -66,10 +66,10 @@ impl SourceEntry {
|
||||||
let index = stream.index;
|
let index = stream.index;
|
||||||
if muted {
|
if muted {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("audio-volume-muted-symbolic");
|
.set_icon_name("microphone-disabled-symbolic");
|
||||||
} else {
|
} else {
|
||||||
imp.resetSourceMute
|
imp.resetSourceMute
|
||||||
.set_icon_name("audio-volume-high-symbolic");
|
.set_icon_name("audio-input-microphone-symbolic");
|
||||||
}
|
}
|
||||||
toggle_source_mute(index, muted);
|
toggle_source_mute(index, muted);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue