change AutomationLine::_line_color to _line_color_name

This commit is contained in:
Paul Davis 2025-01-06 09:31:33 -07:00
parent 05476514c0
commit ebcbed53e6
2 changed files with 5 additions and 5 deletions

View file

@ -93,7 +93,7 @@ AutomationLine::AutomationLine (const string& name,
const ParameterDescriptor& desc) const ParameterDescriptor& desc)
:_name (name) :_name (name)
, _height (0) , _height (0)
, _line_color ("automation line") , _line_color_name ("automation line")
, _view_index_offset (0) , _view_index_offset (0)
, alist (al) , alist (al)
, _visible (Line) , _visible (Line)
@ -147,7 +147,7 @@ AutomationLine::set_sensitive (bool yn)
{ {
_sensitive = yn; _sensitive = yn;
set_line_color (_line_color); set_line_color (_line_color_name);
for (auto & cp : control_points) { for (auto & cp : control_points) {
if (yn) { if (yn) {
@ -294,7 +294,7 @@ AutomationLine::set_height (guint32 h)
void void
AutomationLine::set_line_color (string const & color_name, string color_mod) AutomationLine::set_line_color (string const & color_name, string color_mod)
{ {
_line_color = color_name; _line_color_name = color_name;
if (_sensitive) { if (_sensitive) {
line->set_outline_color (UIConfiguration::instance().color (color_name)); line->set_outline_color (UIConfiguration::instance().color (color_name));
@ -1065,7 +1065,7 @@ AutomationLine::set_selected_points (PointSelection const & points)
void void
AutomationLine::set_colors () AutomationLine::set_colors ()
{ {
set_line_color (_line_color); set_line_color (_line_color_name);
for (auto & cp : control_points) { for (auto & cp : control_points) {
cp->set_color (); cp->set_color ();
} }

View file

@ -192,7 +192,7 @@ protected:
std::string _name; std::string _name;
guint32 _height; guint32 _height;
std::string _line_color; std::string _line_color_name;
std::string _line_color_mod; std::string _line_color_mod;
uint32_t _view_index_offset; uint32_t _view_index_offset;
std::shared_ptr<ARDOUR::AutomationList> alist; std::shared_ptr<ARDOUR::AutomationList> alist;