mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 21:25:46 +01:00
ardourfader: beginning of per-fader color
This commit is contained in:
parent
e0d33bb726
commit
9459ca5583
2 changed files with 25 additions and 4 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <gtkmm/adjustment.h>
|
||||
|
||||
#include "gtkmm2ext/cairo_widget.h"
|
||||
#include "gtkmm2ext/colors.h"
|
||||
#include "widgets/visibility.h"
|
||||
|
||||
namespace ArdourWidgets {
|
||||
|
|
@ -99,12 +100,18 @@ private:
|
|||
sigc::connection _parent_style_change;
|
||||
Widget * _current_parent;
|
||||
Gdk::Color get_parent_bg ();
|
||||
Gtkmm2ext::Color _explicit_bg;
|
||||
bool have_explicit_bg;
|
||||
Gtkmm2ext::Color _explicit_fg;
|
||||
bool have_explicit_fg;
|
||||
|
||||
void create_patterns();
|
||||
void adjustment_changed ();
|
||||
void set_adjustment_from_event (GdkEventButton *);
|
||||
void update_unity_position ();
|
||||
int display_span ();
|
||||
Gdk::Color bg_color (Gtk::StateType);
|
||||
Gdk::Color fg_color (Gtk::StateType);
|
||||
|
||||
struct FaderImage {
|
||||
cairo_pattern_t* pattern;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue