-void MainWindow::highlight_control_if_exists(unsigned bus_idx, T *(Ui_AudioExpandedView::*control), bool highlight)
+void MainWindow::highlight_mute_control(T *control, bool highlight)
+{
+ if (control == nullptr) {
+ return;
+ }
+ if (global_audio_mixer == nullptr ||
+ global_audio_mixer->get_mapping_mode() != AudioMixer::MappingMode::MULTICHANNEL) {
+ highlight = false;
+ }
+ if (highlight) {
+ control->setStyleSheet("QPushButton { background: rgb(0,255,0,80); } QPushButton:checked { background: rgba(255,80,0,140); }");
+ } else {
+ control->setStyleSheet("QPushButton:checked { background: rgba(255,0,0,80); }");
+ }
+}
+
+template<class T>
+void MainWindow::highlight_control_if_exists(unsigned bus_idx, T *(Ui_AudioExpandedView::*control), bool highlight, bool is_mute_button)