diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-24 00:51:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-24 00:57:15 +0200 |
commit | 777f1ea3bef475d9442d8be2fb85a26012a3a639 (patch) | |
tree | 98c74340323b2de6773f8a1a8ef0c79d72f27ec0 /gtk2_ardour/mono_panner.cc | |
parent | 37e6a701bdf1403b47464488a2461e192020c9e9 (diff) |
Indicate unlinked send-panners in pan-widget #8024
Diffstat (limited to 'gtk2_ardour/mono_panner.cc')
-rw-r--r-- | gtk2_ardour/mono_panner.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc index e7b959fe44..6c113e122c 100644 --- a/gtk2_ardour/mono_panner.cc +++ b/gtk2_ardour/mono_panner.cc @@ -147,8 +147,8 @@ MonoPanner::on_expose_event (GdkEventExpose*) o = colors.outline; f = colors.fill; t = colors.text; - b = colors.background; - pf = colors.pos_fill; + b = _send_mode ? colors.send_bg : colors.background; + pf = (_send_mode && !_panner_shell->is_linked_to_route()) ? colors.send_pan : colors.pos_fill; po = colors.pos_outline; if (_panner_shell->bypassed()) { @@ -160,9 +160,6 @@ MonoPanner::on_expose_event (GdkEventExpose*) t = 0x606060ff; } - if (_send_mode) { - b = UIConfiguration::instance().color ("send bg"); - } /* background */ context->set_source_rgba (UINT_RGBA_R_FLT(b), UINT_RGBA_G_FLT(b), UINT_RGBA_B_FLT(b), UINT_RGBA_A_FLT(b)); context->rectangle (0, 0, width, height); @@ -488,12 +485,14 @@ MonoPanner::on_key_press_event (GdkEventKey* ev) void MonoPanner::set_colors () { - colors.fill = UIConfiguration::instance().color_mod ("mono panner fill", "panner fill"); - colors.outline = UIConfiguration::instance().color ("mono panner outline"); - colors.text = UIConfiguration::instance().color ("mono panner text"); - colors.background = UIConfiguration::instance().color ("mono panner bg"); + colors.fill = UIConfiguration::instance().color_mod ("mono panner fill", "panner fill"); + colors.outline = UIConfiguration::instance().color ("mono panner outline"); + colors.text = UIConfiguration::instance().color ("mono panner text"); + colors.background = UIConfiguration::instance().color ("mono panner bg"); colors.pos_outline = UIConfiguration::instance().color ("mono panner position outline"); - colors.pos_fill = UIConfiguration::instance().color_mod ("mono panner position fill", "mono panner position fill"); + colors.pos_fill = UIConfiguration::instance().color_mod ("mono panner position fill", "mono panner position fill"); + colors.send_bg = UIConfiguration::instance().color ("send bg"); + colors.send_pan = UIConfiguration::instance().color ("send pan"); } void |