summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-19 22:21:01 +0000
committerDavid Robillard <d@drobilla.net>2012-08-19 22:21:01 +0000
commit406b3e86dbabe89900068a1298f595245b98bfb7 (patch)
tree8dfa90a9538bcf4690d0ef77395415728ce9b5fe /src/gui
parentba1f169967f64b9657074fba2de803b29829345c (diff)
downloadingen-406b3e86dbabe89900068a1298f595245b98bfb7.tar.gz
ingen-406b3e86dbabe89900068a1298f595245b98bfb7.tar.bz2
ingen-406b3e86dbabe89900068a1298f595245b98bfb7.zip
Draw CV ports as a distinct colour.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4726 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-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;