diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-07 17:43:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-07 17:43:55 +0000 |
commit | b08d13706f9e98fc75a727822209942c00d8f1b3 (patch) | |
tree | 4a6fd2881755a340cabcd4a79657f6bb682625de /gtk2_ardour/ardour_button.h | |
parent | 86a9d45ad072809c06e41e3c10683f0f0ee6a4a6 (diff) |
remove additional "mid" color from ArdourButton; replace Active/Mid widget state with ExplicitActive/ImplicitActive; represent implicit-active state with colored border around ArdourButton; tune button colors; new rounded_foo() functions, some in use, some not in use right now
git-svn-id: svn://localhost/ardour2/branches/3.0@11466 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_button.h')
-rw-r--r-- | gtk2_ardour/ardour_button.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.h b/gtk2_ardour/ardour_button.h index 574e8b5a41..c09a05fc8c 100644 --- a/gtk2_ardour/ardour_button.h +++ b/gtk2_ardour/ardour_button.h @@ -114,7 +114,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable int _corner_mask; cairo_pattern_t* edge_pattern; - cairo_pattern_t* fill_pattern; + cairo_pattern_t* active_pattern; + cairo_pattern_t* inactive_pattern; cairo_pattern_t* led_inset_pattern; cairo_pattern_t* reflection_pattern; @@ -130,6 +131,11 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable double led_b; double led_a; + double active_r; + double active_g; + double active_b; + double active_a; + bool _act_on_release; bool _led_left; bool _fixed_diameter; @@ -145,6 +151,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable void action_sensitivity_changed (); void action_visibility_changed (); void action_tooltip_changed (); + + static cairo_pattern_t* mid_mask; + static void create_mid_mask (); }; #endif /* __gtk2_ardour_ardour_button_h__ */ |