Hi !
Any opinion on the following patch ? Ie makes the halo of the Pre/Bypass switch on the LCD (leftmost by default) follow the corresponding LED if any and bypass state, which ... I prefer :-) IE, I actually get some color there !
I'll add it to a future pull request if you don't object.
diff --git a/pistomp/lcdbase.py b/pistomp/lcdbase.py
index cf56f31..7bb4d99 100755
--- a/pistomp/lcdbase.py
+++ b/pistomp/lcdbase.py
@@ -188,6 +188,8 @@ class Lcdbase(abstract_lcd.Lcd):
continue
f = fss[fs_id]
color = self.valid_color(f.lcd_color)
+ if self.color_plugin_bypassed is not None and not f.enabled:
+ color = self.color_plugin_bypassed
label = "" if f.display_label is None else f.display_label
x = self.footswitch_pitch[len(fss)] * fs_id
self.draw_plugin(zone, x, 0, label, self.footswitch_width, False, None, True, color)
diff --git a/pistomp/lcdcolor.py b/pistomp/lcdcolor.py
index 1c23b06..9955bda 100755
--- a/pistomp/lcdcolor.py
+++ b/pistomp/lcdcolor.py
@@ -254,7 +254,7 @@ class Lcdcolor(lcdbase.Lcdbase):
if is_footswitch:
if plugin:
plugin.lcd_xyz = (xy1, xy2, zone)
- c = self.color_plugin_bypassed if plugin is None or plugin.is_bypassed() else color
+ c = self.color_plugin_bypassed if plugin is not None and plugin.is_bypassed() else color
self.draw_footswitch(xy1, xy2, zone, text, c)
elif plugin:
plugin.lcd_xyz = (xy1, xy2, zone)