Skip to content

fix: unify color parsing#774

Merged
frysee merged 1 commit into
mainfrom
fix-rgba-parsing
Jul 10, 2026
Merged

fix: unify color parsing#774
frysee merged 1 commit into
mainfrom
fix-rgba-parsing

Conversation

@frysee

@frysee frysee commented Jul 10, 2026

Copy link
Copy Markdown
Member

No description provided.

@frysee frysee merged commit 3bca8b7 into main Jul 10, 2026
5 checks passed
@frysee frysee deleted the fix-rgba-parsing branch July 10, 2026 23:02
carroarmato0 added a commit to carroarmato0/NextUI that referenced this pull request Jul 11, 2026
Integrates the new upstream commits since c24b36d, adapted to the
cpp20-migration branch's C++/DeviceDescriptor architecture.

New upstream work brought in:
- feat: Trimui Brick Pro support (LoveRetro#766) + fix: trigger LEDs not
  addressable (MAX_LIGHTS 4->5)
- fix: unify color parsing (LoveRetro#774) -- also fixes a hex_str[9] overflow
  and missed alpha in colour presets
- feat: configurable button hint styles (LoveRetro#763)
- Update README license notice; Dependabot GitHub Actions bumps

Brick Pro reconciliation (adopt upstream semantics):
Our branch had its own Brick-family Brick Pro (commit 0a64688). Per
decision, upstream's richer, distinct-device model is adopted and
re-expressed through our DeviceDescriptor architecture:
- is_brickpro is now separate from is_brick (no longer a Brick-family
  member); isBrickModel() helper removed.
- TG5040_BRICK_PRO descriptor carries the new joy_l4=11, joy_r4=12,
  joy_menu_alt=15; L4/R4 trigger buttons wired through descriptor-driven
  JOY_L4/R4 macros and BTN_ID_L4/R4.
- Five-zone LED layout (F1, F2, top bar, joysticks, rear triggers) with
  ledsettings_brickpro.txt and LED_PATH4; own brightness curve and
  displaycal preset via libmsettings.
- platform.h keeps our descriptor macros (not upstream's is_brick||
  is_brickpro ternaries); tg5050 descriptor gets explicit JOY_NA for the
  new fields.

Feature ports kept our C++20 idioms: colorpickermenu/menu keep SurfacePtr
RAII and GFX_getFonts() accessors while taking upstream's semantic fixes;
button-hint input_rects added alongside our encapsulated font accessor.
Duplicate BrickPro enumerator in settings.cpp resolved to upstream's.
Upstream's re-enabled PLAT_pollInput debug LOG_info lines kept commented.

Validated: full clean build on tg5040 (device target, incl. Brick Pro
paths). Brick Pro remains hardware-unverified on both sides.
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