diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-05 16:52:41 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-05 16:52:49 -0400 |
commit | b0e496c82501c5bd44b9495bd9bd4c2077cf58c3 (patch) | |
tree | 6ed6b01ffc277771fce8a2fdcd0296530ab0c0f2 /gtk2_ardour/note_base.h | |
parent | cbe458adddc344e207db431b22d8be2ae0afb582 (diff) |
remove more unused MIDI note colors
Diffstat (limited to 'gtk2_ardour/note_base.h')
-rw-r--r-- | gtk2_ardour/note_base.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h index f72f71181b..7062884e5b 100644 --- a/gtk2_ardour/note_base.h +++ b/gtk2_ardour/note_base.h @@ -24,6 +24,7 @@ #include "temporal/beats.h" #include "canvas/types.h" +#include "gtkmm2ext/colors.h" #include "rgb_macros.h" #include "ui_config.h" @@ -103,12 +104,12 @@ public: static void set_colors (); - static uint32_t meter_style_fill_color(uint8_t vel, bool selected); + static Gtkmm2ext::Color meter_style_fill_color(uint8_t vel, bool selected); /// calculate outline colors from fill colors of notes inline static uint32_t calculate_outline(uint32_t color, bool selected=false) { if (selected) { - return _selected_outline_col; + return _selected_col; } else { return UINT_INTERPOLATE(color, 0x000000ff, 0.5); } @@ -140,9 +141,7 @@ protected: private: bool event_handler (GdkEvent *); - static uint32_t _selected_mod_col; - static uint32_t _selected_outline_col; - static uint32_t _selected_col; + static Gtkmm2ext::Color _selected_col; static bool _color_init; }; |