Skip to content

fix: alpha parsing in short hex codes - #7320

Merged
pajlada merged 3 commits into
Chatterino:masterfrom
3r01:fix-short-hex-alpha
Sep 26, 2026
Merged

pajlada merged 3 commits into
Chatterino:masterfrom
3r01:fix-short-hex-alpha

Conversation

@3r01

@3r01 3r01 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

When parsing short hex codes in the colour picker, the rgb digits are duplicated correctly but the alpha digit is not (#rgba -> #rrggbba). Fixed by duplicating the alpha digit as well, consistent with the rgb components (#rgba -> #rrggbbaa).

@3r01 3r01 changed the title fix: alpha parsing in short hex colors fix: alpha parsing in short hex codes Sep 23, 2026
@3r01
3r01 force-pushed the fix-short-hex-alpha branch from a204f2b to 75a6ffc Compare September 23, 2026 16:03
Comment thread src/widgets/helper/color/ColorInput.cpp Outdated
Comment thread tests/src/ColorInput.cpp Outdated
@pajlada
pajlada enabled auto-merge (squash) September 26, 2026 13:12
@pajlada
pajlada merged commit 1234bb9 into Chatterino:master Sep 26, 2026
18 checks passed
@3r01
3r01 deleted the fix-short-hex-alpha branch September 26, 2026 13:40
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.

3 participants