summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-06 05:27:35 +0000
committerDavid Robillard <d@drobilla.net>2008-01-06 05:27:35 +0000
commitc50cfa27dc96b5953d9bf42fd5368b0627a1604d (patch)
tree14a4e669a1d96d89e34345464f272037ed6a39b6
parentbf9963a4b96fb726ccce12a52033546e9191b87d (diff)
downloadpatchage-c50cfa27dc96b5953d9bf42fd5368b0627a1604d.tar.gz
patchage-c50cfa27dc96b5953d9bf42fd5368b0627a1604d.tar.bz2
patchage-c50cfa27dc96b5953d9bf42fd5368b0627a1604d.zip
Use colours derived from Tango-palette (de-candified, darkened).
Use same port colours between Ingen and Patchage (though with different meanings). git-svn-id: http://svn.drobilla.net/lad/patchage@1019 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/StateManager.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/StateManager.cpp b/src/StateManager.cpp
index 9753a18..a85dd72 100644
--- a/src/StateManager.cpp
+++ b/src/StateManager.cpp
@@ -215,12 +215,14 @@ StateManager::set_zoom(float zoom)
int
StateManager::get_port_color(PortType type)
{
+ // Darkest tango palette colour, with S -= 6, V -= 6, w/ transparency
+
if (type == JACK_AUDIO)
- return 0x305171B0;
+ return 0x244678FF;
else if (type == JACK_MIDI)
- return 0x663939B0;
+ return 0x960909FF;
else if (type == ALSA_MIDI)
- return 0x307130B0;
+ return 0x4A8A0EFF;
else
- return 0xFF0000B0;
+ return 0xFF0000FF;
}