mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
refactor flat_buttons into cairowidget, and add a canvas-like convenience function for setting cairo color with a Gtk::Color
This commit is contained in:
parent
5db98d9372
commit
e7a15027e8
6 changed files with 43 additions and 19 deletions
|
|
@ -45,9 +45,6 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
|||
static Element led_default_elements;
|
||||
static Element just_led_default_elements;
|
||||
|
||||
static void set_flat_buttons (bool yn);
|
||||
static bool flat_buttons() { return _flat_buttons; }
|
||||
|
||||
ArdourButton (Element e = default_elements);
|
||||
ArdourButton (const std::string&, Element e = default_elements);
|
||||
virtual ~ArdourButton ();
|
||||
|
|
@ -157,8 +154,6 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
|||
bool _focused;
|
||||
bool _fixed_colors_set;
|
||||
|
||||
static bool _flat_buttons;
|
||||
|
||||
void setup_led_rect ();
|
||||
void set_colors ();
|
||||
void color_handler ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue