diff --git a/src/alsa-scarlett-gui.css b/src/alsa-scarlett-gui.css index 8a90029..5d1d8e7 100644 --- a/src/alsa-scarlett-gui.css +++ b/src/alsa-scarlett-gui.css @@ -131,3 +131,14 @@ button.phantom:checked { .direct-monitor:checked { text-shadow: 0 0 5px #00c000, 0 0 15px #00c000; } + +/* Direct Monitor Selections (2i2) */ +button.direct-monitor.selected-mono > label { + color: #ffffff; + text-shadow: 0 0 5px #c0c0c0, 0 0 15px #c0c0c0; +} + +button.direct-monitor.selected-stereo > label { + color: #ffffff; + text-shadow: 0 0 5px #00c000, 0 0 15px #00c000; +} diff --git a/src/iface-no-mixer.c b/src/iface-no-mixer.c index 76738f3..290c06b 100644 --- a/src/iface-no-mixer.c +++ b/src/iface-no-mixer.c @@ -6,7 +6,7 @@ #include "stringhelper.h" #include "tooltips.h" #include "widget-boolean.h" -#include "widget-combo.h" +#include "widget-drop-down.h" #include "window-helper.h" #include "window-startup.h" @@ -94,9 +94,7 @@ GtkWidget *create_iface_no_mixer_main(struct alsa_card *card) { ); gtk_grid_attach(GTK_GRID(output_grid), w, 0, 0, 1, 1); } else if (strcmp(elem->name, "Direct Monitor Playback Enum") == 0) { - GtkWidget *l = gtk_label_new("Direct Monitor"); - gtk_grid_attach(GTK_GRID(output_grid), l, 0, 0, 1, 1); - w = make_combo_box_alsa_elem(elem); + w = make_drop_down_alsa_elem(elem, "Direct Monitor"); gtk_widget_add_css_class(w, "direct-monitor"); gtk_widget_set_tooltip_text( w, @@ -105,7 +103,7 @@ GtkWidget *create_iface_no_mixer_main(struct alsa_card *card) { "both inputs to the left and right outputs. Stereo sends " "input 1 to the left, and input 2 to the right output." ); - gtk_grid_attach(GTK_GRID(output_grid), w, 0, 1, 1, 1); + gtk_grid_attach(GTK_GRID(output_grid), w, 0, 0, 1, 1); } }