From 406b3e86dbabe89900068a1298f595245b98bfb7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Aug 2012 22:21:01 +0000 Subject: Draw CV ports as a distinct colour. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4726 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Configuration.cpp | 5 +++++ src/gui/Configuration.hpp | 1 + 2 files changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.1