mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Set LV2 UI options from Ardour's theme
This commit is contained in:
parent
1ecaffa642
commit
3f9684248e
2 changed files with 4 additions and 0 deletions
|
|
@ -950,6 +950,7 @@ ARDOUR_UI::on_theme_changed ()
|
||||||
{
|
{
|
||||||
LV2Plugin::set_global_ui_background_color (UIConfiguration::instance().color ("gtk_background"));
|
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_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_scale_factor (UIConfiguration::instance().get_ui_scale());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
#include "pbd/stacktrace.h"
|
#include "pbd/stacktrace.h"
|
||||||
#include "pbd/unwind.h"
|
#include "pbd/unwind.h"
|
||||||
|
|
||||||
|
#include "ardour/lv2_plugin.h"
|
||||||
#include "ardour/rc_configuration.h"
|
#include "ardour/rc_configuration.h"
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
#include "ardour/transport_master_manager.h"
|
#include "ardour/transport_master_manager.h"
|
||||||
|
|
@ -475,6 +476,7 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||||
ArdourButton::set_flat_buttons (flat);
|
ArdourButton::set_flat_buttons (flat);
|
||||||
/* force a redraw */
|
/* force a redraw */
|
||||||
gtk_rc_reset_styles (gtk_settings_get_default());
|
gtk_rc_reset_styles (gtk_settings_get_default());
|
||||||
|
LV2Plugin::set_global_ui_style_flat (flat);
|
||||||
}
|
}
|
||||||
} else if (p == "boxy-buttons") {
|
} else if (p == "boxy-buttons") {
|
||||||
bool boxy = UIConfiguration::instance().get_boxy_buttons();
|
bool boxy = UIConfiguration::instance().get_boxy_buttons();
|
||||||
|
|
@ -482,6 +484,7 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||||
ArdourButton::set_boxy_buttons (boxy);
|
ArdourButton::set_boxy_buttons (boxy);
|
||||||
/* force a redraw */
|
/* force a redraw */
|
||||||
gtk_rc_reset_styles (gtk_settings_get_default());
|
gtk_rc_reset_styles (gtk_settings_get_default());
|
||||||
|
LV2Plugin::set_global_ui_style_boxy (boxy);
|
||||||
}
|
}
|
||||||
} else if ( (p == "snap-to-region-sync") || (p == "snap-to-region-start") || (p == "snap-to-region-end") ) {
|
} else if ( (p == "snap-to-region-sync") || (p == "snap-to-region-start") || (p == "snap-to-region-end") ) {
|
||||||
if (editor) editor->mark_region_boundary_cache_dirty();
|
if (editor) editor->mark_region_boundary_cache_dirty();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue