make highlighted option more visible
All checks were successful
/ Build & Publish (push) Successful in 46s

This commit is contained in:
Daniella / Tove 2024-06-25 08:21:13 +02:00
parent 4382f24399
commit 6032a97ca2
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -142,13 +142,13 @@ public class CBWindow extends JFrame implements WindowListener {
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
CBCallbackContainer item = list.get(i); CBCallbackContainer item = list.get(i);
if(item.callback != null) { if(item.callback != null) {
if (justRanSomething.isLocked() && i == selected) { if (i == selected) {
g.setColor(new Color(0xee00ee)); g.setColor(new Color(justRanSomething.isLocked() ? 0xff88ff : 0xee00ee));
g.drawString("> " + item.name, 7, y += 2 + 15); g.drawString("> " + item.name, justRanSomething.isLocked() ? 7 : 5, y += 2 + 15);
g.setColor(new Color(0xcc00cc)); g.setColor(new Color(0xcc00cc));
continue; continue;
} }
g.drawString((i == selected ? "> " : "") + item.name, 5, y += 2 + 15); g.drawString(item.name, 5, y += 2 + 15);
} else { } else {
g.drawString(item.name, 3, y += 2 + 15); g.drawString(item.name, 3, y += 2 + 15);
} }