diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-13 17:25:31 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-13 17:26:02 -0400 |
commit | 3d5491d0d0501acbcaafa1a5a5b811c5eeaf9c00 (patch) | |
tree | ff26a6fa3d094a5878225166a5cb41369a3961e9 /gtk2_ardour/shuttle_control.h | |
parent | dcf852aae41a2d407f770324f30a5b5138a51039 (diff) |
show ShuttleControl GUI some love.
now uses Pango, not Cairo, for text rendering
Diffstat (limited to 'gtk2_ardour/shuttle_control.h')
-rw-r--r-- | gtk2_ardour/shuttle_control.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h index 20fe46096f..31be53c976 100644 --- a/gtk2_ardour/shuttle_control.h +++ b/gtk2_ardour/shuttle_control.h @@ -56,6 +56,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr }; boost::shared_ptr<ShuttleControllable> controllable() const { return _controllable; } + void set_colors (); protected: bool _hovering; @@ -73,7 +74,11 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr Gtk::Menu* shuttle_style_menu; Gtk::Menu* shuttle_context_menu; BindingProxy binding_proxy; - + Glib::RefPtr<Pango::Layout> left_text; + Glib::RefPtr<Pango::Layout> right_text; + Pango::AttrList text_attributes; + Pango::AttrColor* text_color; + float bg_r, bg_g, bg_b; void build_shuttle_context_menu (); void show_shuttle_context_menu (); void shuttle_style_changed(); |