summaryrefslogtreecommitdiffstats
path: root/src/gui/Style.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-31 01:24:57 +0000
committerDavid Robillard <d@drobilla.net>2014-08-31 01:24:57 +0000
commita2792bd09212eed55bba1aa30dc09043a6955486 (patch)
treed4262f760d4522bc6f1c99778987aada332b9e7e /src/gui/Style.cpp
parente3ecb2b439bd03d27b5e11efe430c24f0ebe6283 (diff)
downloadingen-a2792bd09212eed55bba1aa30dc09043a6955486.tar.gz
ingen-a2792bd09212eed55bba1aa30dc09043a6955486.tar.bz2
ingen-a2792bd09212eed55bba1aa30dc09043a6955486.zip
Use float sequences for sample-accurate control ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5462 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Style.cpp')
-rw-r--r--src/gui/Style.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/Style.cpp b/src/gui/Style.cpp
index 1c61d995..287a1496 100644
--- a/src/gui/Style.cpp
+++ b/src/gui/Style.cpp
@@ -82,7 +82,6 @@ Style::apply_settings()
uint32_t
Style::get_port_color(const Client::PortModel* p)
{
- assert(p != NULL);
const URIs& uris = _app.uris();
if (p->is_a(uris.lv2_AudioPort)) {
return _audio_port_color;
@@ -102,5 +101,15 @@ Style::get_port_color(const Client::PortModel* p)
return 0x666666FF;
}
+uint32_t
+Style::get_port_dash_length(const Client::PortModel* p)
+{
+ const URIs& uris = _app.uris();
+ if (p->is_a(uris.atom_AtomPort)) {
+ return 4.0;
+ }
+ return 0.0;
+}
+
} // namespace GUI
} // namespace Ingen