From 74f313dd6b52c5bd36536d90e7b9e62b0679087b Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 22 Aug 2014 11:45:34 -0500 Subject: [PATCH] Rationalize ArdourButton and lots of associated theming issues. ArdourButtons now have a "pushed" animation. The gradient is now implemented in the button, rather than providing 2 colors in the theme, which was burdensome. Lots of code cleanup in ArdourButton. Removed several unnecessary flags. Refactor more stuff into route_ui. --- gtk2_ardour/ardour3_ui_default.conf.in | 287 +++++++------------- gtk2_ardour/ardour_button.cc | 353 +++++++++---------------- gtk2_ardour/ardour_button.h | 51 ++-- gtk2_ardour/ardour_knob.cc | 4 +- gtk2_ardour/ardour_ui.cc | 12 +- gtk2_ardour/ardour_ui2.cc | 2 +- gtk2_ardour/ardour_ui_dialogs.cc | 7 +- gtk2_ardour/canvas_vars.h | 21 +- gtk2_ardour/editor.cc | 17 -- gtk2_ardour/editor_routes.cc | 10 +- gtk2_ardour/meter_strip.cc | 21 +- gtk2_ardour/meter_strip.h | 4 +- gtk2_ardour/mixer_strip.cc | 69 ++++- gtk2_ardour/mixer_strip.h | 4 + gtk2_ardour/route_time_axis.cc | 5 +- gtk2_ardour/route_time_axis.h | 2 +- gtk2_ardour/route_ui.cc | 69 +++-- gtk2_ardour/route_ui.h | 4 +- 18 files changed, 388 insertions(+), 554 deletions(-) diff --git a/gtk2_ardour/ardour3_ui_default.conf.in b/gtk2_ardour/ardour3_ui_default.conf.in index f3a8de0706..f322bb02a1 100644 --- a/gtk2_ardour/ardour3_ui_default.conf.in +++ b/gtk2_ardour/ardour3_ui_default.conf.in @@ -81,12 +81,10 @@