Skip to content

Alpha support#762

Merged
frysee merged 2 commits into
mainfrom
alpha-support
Jul 3, 2026
Merged

Alpha support#762
frysee merged 2 commits into
mainfrom
alpha-support

Conversation

@frysee

@frysee frysee commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@frysee frysee merged commit dfb02b0 into main Jul 3, 2026
62 checks passed
@frysee frysee deleted the alpha-support branch July 3, 2026 21:07
carroarmato0 added a commit to carroarmato0/NextUI that referenced this pull request Jul 4, 2026
Brings in the maintainer's "Alpha support" feature (upstream PR LoveRetro#762): theme
colours are now packed RGBA (8-digit hex, opaque-alpha upgrade for legacy RGB),
new *_RECT assets, alpha-aware GFX blit paths, and a configurable game-switcher
curtain overlay (CFG_getGameSwitcherCurtain + GFX_blitTop/BottomCurtain).

Most of it auto-merged cleanly -- the feature lands mainly in api.c/config.c
(which we kept as C) and the settings color picker, largely outside our
refactor surface. Two conflicts, both the same shape and resolved by taking
upstream's alpha logic while keeping our C++20 encapsulation:

- settings/colorpickermenu.cpp -- adopt the new alpha channel (R/G/B/A width
  measure, "#RRGGBBAA" 8-digit hex) but route font access through
  GFX_getFonts() instead of the now-private `font` global.
- settings/menu.cpp -- same: upstream's 0x%08X RGBA label, our GFX_getFonts().

The one migration-caused touch the evaluation predicted (a `font.small` ref in
the new color-picker code) fell out of the colorpickermenu conflict. No
compound-literal patterns in the new code, so the g++ codegen landmine is not a
factor. Left the new config.c sprintf(value,...) serialization as-is: it matches
config.c's existing convention and CFG_get has no buffer-size param.

All of tg5040 builds clean (nextui, minarch, settings).
carroarmato0 pushed a commit to carroarmato0/NextUI that referenced this pull request Jul 5, 2026
…oveRetro#762)

* feat: full alpha transparency support for theme colors, 3-slicing for pill sprites

* feat: option for a half-transparent top/bottom curtain on game switcher (helps when using transparent pills)
carroarmato0 added a commit to carroarmato0/NextUI that referenced this pull request Jul 5, 2026
Brings in the maintainer's "Alpha support" feature (upstream PR LoveRetro#762): theme
colours are now packed RGBA (8-digit hex, opaque-alpha upgrade for legacy RGB),
new *_RECT assets, alpha-aware GFX blit paths, and a configurable game-switcher
curtain overlay (CFG_getGameSwitcherCurtain + GFX_blitTop/BottomCurtain).

Most of it auto-merged cleanly -- the feature lands mainly in api.c/config.c
(which we kept as C) and the settings color picker, largely outside our
refactor surface. Two conflicts, both the same shape and resolved by taking
upstream's alpha logic while keeping our C++20 encapsulation:

- settings/colorpickermenu.cpp -- adopt the new alpha channel (R/G/B/A width
  measure, "#RRGGBBAA" 8-digit hex) but route font access through
  GFX_getFonts() instead of the now-private `font` global.
- settings/menu.cpp -- same: upstream's 0x%08X RGBA label, our GFX_getFonts().

The one migration-caused touch the evaluation predicted (a `font.small` ref in
the new color-picker code) fell out of the colorpickermenu conflict. No
compound-literal patterns in the new code, so the g++ codegen landmine is not a
factor. Left the new config.c sprintf(value,...) serialization as-is: it matches
config.c's existing convention and CFG_get has no buffer-size param.

All of tg5040 builds clean (nextui, minarch, settings).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant