13
0

Push UI scaling to libardour

This commit is contained in:
Robin Gareus 2021-12-24 21:55:00 +01:00
parent 50c60c031d
commit 8221b22ffd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1000,10 +1000,10 @@ ARDOUR_UI::save_ardour_state ()
void
ARDOUR_UI::on_theme_changed ()
{
ARDOUR::set_global_ui_scale_factor (UIConfiguration::instance().get_ui_scale());
LV2Plugin::set_global_ui_background_color (UIConfiguration::instance().color ("gtk_background"));
LV2Plugin::set_global_ui_foreground_color (UIConfiguration::instance().color ("gtk_foreground"));
LV2Plugin::set_global_ui_contrasting_color (UIConfiguration::instance().color ("theme:contrasting clock")); // more contrast that "theme:contrasting"
LV2Plugin::set_global_ui_scale_factor (UIConfiguration::instance().get_ui_scale());
LV2Plugin::set_global_ui_style_boxy (UIConfiguration::instance().get_boxy_buttons());
LV2Plugin::set_global_ui_style_flat (UIConfiguration::instance().get_flat_buttons());
}