diff options
-rw-r--r-- | src/Configuration.cpp | 8 | ||||
-rw-r--r-- | wscript | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 865a781..93a3538 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -44,11 +44,19 @@ Configuration::Configuration() , _show_messages(false) , _messages_height(0) { +#ifdef PATCHAGE_USE_LIGHT_THEME + _port_colors[JACK_AUDIO] = _default_port_colors[JACK_AUDIO] = 0xA4BC8CFF; + _port_colors[JACK_MIDI] = _default_port_colors[JACK_MIDI] = 0xC89595FF; + _port_colors[ALSA_MIDI] = _default_port_colors[ALSA_MIDI] = 0x8F7198FF; + _port_colors[JACK_OSC] = _default_port_colors[JACK_OSC] = 0x7E8EAAFF; + _port_colors[JACK_CV] = _default_port_colors[JACK_CV] = 0x83AFABFF; +#else _port_colors[JACK_AUDIO] = _default_port_colors[JACK_AUDIO] = 0x3E5E00FF; _port_colors[JACK_MIDI] = _default_port_colors[JACK_MIDI] = 0x650300FF; _port_colors[ALSA_MIDI] = _default_port_colors[ALSA_MIDI] = 0x2D0043FF; _port_colors[JACK_OSC] = _default_port_colors[JACK_OSC] = 0x4100FEFF; _port_colors[JACK_CV] = _default_port_colors[JACK_CV] = 0x005E4EFF; +#endif } bool @@ -37,6 +37,8 @@ def options(opt): help='Do not build Alsa Sequencer support') opt.add_option('--no-binloc', action='store_true', dest='no_binloc', help='Do not try to read files from executable location') + opt.add_option('--light-theme', action='store_true', dest='light_theme', + help='Use light coloured theme') def configure(conf): conf.line_just = 44 @@ -98,6 +100,9 @@ def configure(conf): if not Options.options.no_binloc and conf.is_defined('HAVE_DLADDR'): autowaf.define(conf, 'PATCHAGE_BINLOC', 1) + if Options.options.light_theme: + autowaf.define(conf, 'PATCHAGE_USE_LIGHT_THEME', 1) + # Boost headers conf.check_cxx(header_name='boost/format.hpp') conf.check_cxx(header_name='boost/shared_ptr.hpp') |