summaryrefslogtreecommitdiffstats
path: root/src/gui/Style.cpp
diff options
context:
space:
mode:
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