Skip to content

Changed background color for new Layers to black insted of white#693

Merged
humdingerb merged 1 commit into
HaikuArchives:masterfrom
HiCamino:684-black-bg
Jan 10, 2026
Merged

Changed background color for new Layers to black insted of white#693
humdingerb merged 1 commit into
HaikuArchives:masterfrom
HiCamino:684-black-bg

Conversation

@HiCamino
Copy link
Copy Markdown
Contributor

@HiCamino HiCamino commented Jan 9, 2026

the app seems to expect to be black bg for everything else

(even color selector shows bg as 0, 0, 0 beFORE this fix!!!)

bg-black5

Fixes #684

the app seems to expect to be black bg for everything else

Fixes HaikuArchives#684
@humdingerb
Copy link
Copy Markdown
Member

I'm not sure I 100% understand what's described in #684...
But I assume you know what you're doing and this change makes the internals more coherent. :)

@humdingerb humdingerb merged commit 3054076 into HaikuArchives:master Jan 10, 2026
4 checks passed
@HiCamino
Copy link
Copy Markdown
Contributor Author

easiest way to understand it is if you open a blank image and use the color selector you get 0, 0, 0, 0 which is black 100% alpha

bg-black5

then use the transparency tool on the blank image and you find out the image is actually 255, 255, 255, 0 aka WHITE 100% alpha

white-bg

the transparency tool only changes transparency and not color so the blank image really is white.
so the color selector is lying to you

but also other tools think black is "clear" like if you use the Eraser on the blank image and then use transparency tool on the spot you just erased it is black

black-erase

and also if yoiu open an image with a transparent bg it is aslo black:

black-alpha

i hope this makes sense the only time a transparent image is white is when you make a new layer otherwise everything else says "clear" = black 100% alpha

@HiCamino
Copy link
Copy Markdown
Contributor Author

HiCamino commented Jan 10, 2026

added hopefuly easier explanatoin in #684

@humdingerb
Copy link
Copy Markdown
Member

I think I get it... at least the behaviour when using the eraser and transparency tools is now correct after this PR got merged.
However, the colour picker didn't lie: the current ArtPaint 2.7.2 from HaikuDepot has the colour picker say it's 255,255,255,0 when used on a transparent canvas. Anyway... this was a good change. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

"clear" canvas is white instead of black

2 participants