From bb797943ddaae0a904b140fec58f6367fdf87d07 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 2 Dec 2010 15:51:42 +0000 Subject: add configurable colors to stereo panner, plus keybindings for zero width (0), 1 (alt-up) or -1 (alt-down), plus M when its mono git-svn-id: svn://localhost/ardour2/branches/3.0@8153 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/stereo_panner.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gtk2_ardour/stereo_panner.h') diff --git a/gtk2_ardour/stereo_panner.h b/gtk2_ardour/stereo_panner.h index f469e35eea..991ccc88fc 100644 --- a/gtk2_ardour/stereo_panner.h +++ b/gtk2_ardour/stereo_panner.h @@ -57,6 +57,24 @@ class StereoPanner : public Gtk::DrawingArea void value_change (); void set_tooltip (); + + struct ColorScheme { + uint32_t outline; + uint32_t fill; + uint32_t text; + uint32_t background; + }; + + enum State { + Normal, + Mono, + Inverted + }; + + static ColorScheme colors[3]; + static void set_colors (); + static bool have_colors; + static PBD::Signal0 color_change; }; #endif /* __gtk_ardour_stereo_panner_h__ */ -- cgit v1.2.3