Render focused button's focus image in the menu

Buttons with a focus image now swap to it while selected, giving visible
feedback when navigating with the arrow keys.
This commit is contained in:
2026-09-15 23:35:40 -04:00
parent 663c70dd7b
commit d38d7f59aa
3 changed files with 16 additions and 1 deletions
@@ -112,7 +112,12 @@ public final class RcoRenderer implements Display {
}
private void draw(GraphicsContext g, IDisplay display) {
Image image = decode(display.getImage());
Object source = display.getImage();
if (display == focus && display.getFocusImage() != null) {
source = display.getFocusImage();
}
Image image = decode(source);
if (image == null) {
return;
}