+void MainWindow::update_channel_color(Mixer::Output output)
+{
+ if (output >= Mixer::OUTPUT_INPUT0) {
+ unsigned channel = output - Mixer::OUTPUT_INPUT0;
+ string color = global_mixer->get_channel_color(output);
+ previews[channel]->frame->setStyleSheet(QString::fromStdString("background-color:" + color));
+ }
+}
+