+void
+ThemeManager::set_ui_to_state()
+{
+ /* there is no way these values can change individually
+ * by themselves (w/o user-interaction)
+ * hence a common combined update function suffices
+ */
+
+ if (ARDOUR_UI::config()->get_color_file() == "light") {
+ light_button.set_active(true);
+ } else {
+ dark_button.set_active(true);
+ }
+
+ /* there is no need to block signal handlers, here,
+ * all elements check if the value has changed and ignore NOOPs
+ */
+ all_dialogs.set_active (ARDOUR_UI::config()->get_all_floating_windows_are_dialogs());
+ transients_follow_front.set_active (ARDOUR_UI::config()->get_transients_follow_front());
+ flat_buttons.set_active (ARDOUR_UI::config()->get_flat_buttons());
+ blink_rec_button.set_active (ARDOUR_UI::config()->get_blink_rec_arm());
+ region_color_button.set_active (ARDOUR_UI::config()->get_color_regions_using_track_color());
+ show_clipping_button.set_active (ARDOUR_UI::config()->get_show_waveform_clipping());
+ waveform_gradient_depth.set_value(ARDOUR_UI::config()->get_waveform_gradient_depth());
+ timeline_item_gradient_depth.set_value(ARDOUR_UI::config()->get_timeline_item_gradient_depth());
+}
+