Skip to content

Fix slide bar bounds and bitmap palette color issues - #200

Merged
skydoves merged 4 commits into
mainfrom
fix/slider-and-palette-color
Sep 16, 2026
Merged

skydoves merged 4 commits into
mainfrom
fix/slider-and-palette-color

Conversation

@skydoves

Copy link
Copy Markdown
Owner

Keeps the slide bar selector inside the bounds at the maximum position (#116).
Syncs the alpha and brightness slide bars with a pixel picked from a bitmap palette, so a dark pixel is not notified as a bright color (#92).
Adds ColorEnvelope.getRgbHexCode and documents that getHexCode is the AARRGGBB form (#123).
Guards AlphaTileView against creating a zero sized bitmap.

The returned value of getBoundaryX is used as the left position of the
selector, but it was clamped by the half size of the selector. So the
selector was placed over the right edge when the position is the maximum.

Fixes #116
A pixel of a bitmap palette has its own brightness and alpha, but the
slide bars kept their own positions and overrode them. So picking a dark
pixel notified a bright color, and picking black notified white.

Fixes #92
getHexCode returns the AARRGGBB form, which is not documented anywhere.
getRgbHexCode returns the RRGGBB form for the cases the alpha channel is
not needed.

Fixes #123
AlphaTileView crashed with IllegalArgumentException when its size was
changed to zero. Also updates the ABI dump file.
@skydoves
skydoves merged commit 6110aeb into main Sep 16, 2026
2 checks passed
@skydoves
skydoves deleted the fix/slider-and-palette-color branch September 16, 2026 11:51
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