summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/Configuration.cpp5
-rw-r--r--src/gui/Configuration.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/Configuration.cpp b/src/gui/Configuration.cpp
index 1fb48c58..928ae329 100644
--- a/src/gui/Configuration.cpp
+++ b/src/gui/Configuration.cpp
@@ -43,6 +43,7 @@ Configuration::Configuration(App& app)
, _name_style(HUMAN)
, _audio_port_color(0x4A8A0EFF) // Green
, _control_port_color(0x244678FF) // Blue
+ , _cv_port_color(0x248780FF) // Teal (between audio and control)
, _event_port_color(0x960909FF) // Red
, _string_port_color(0x5C3566FF) // Plum
, _value_port_color(0xBABDB6FF) // Aluminum
@@ -87,6 +88,10 @@ Configuration::get_port_color(const Client::PortModel* p)
const URIs& uris = _app.uris();
if (p->is_a(uris.lv2_AudioPort)) {
return _audio_port_color;
+ } else if (p->is_a(uris.lv2_ControlPort)) {
+ return _control_port_color;
+ } else if (p->is_a(uris.lv2_CVPort)) {
+ return _cv_port_color;
} else if (p->supports(uris.atom_String)) {
return _string_port_color;
} else if (_app.can_control(p)) {
diff --git a/src/gui/Configuration.hpp b/src/gui/Configuration.hpp
index 75c352e9..a35d2864 100644
--- a/src/gui/Configuration.hpp
+++ b/src/gui/Configuration.hpp
@@ -69,6 +69,7 @@ private:
uint32_t _audio_port_color;
uint32_t _control_port_color;
+ uint32_t _cv_port_color;
uint32_t _event_port_color;
uint32_t _string_port_color;
uint32_t _value_port_color;