Opened 5 years ago
Closed 3 years ago
#15941 closed bug (fixed)
JPEG & JPEG 2000 Translators about tabs are using document text colour
Reported by: | Starcrasher | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | Add-Ons/Translators | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
About tab of JPEG and JPEG2000 translators are using document text colour in addition of panel text colour.
We can't be sure that it will be readable depending of user colour choices.
Better use panel text colour everywhere or a derivative of it if distinction is necessary.
That's also the case of NanoSVG and PDF translators btw
Change History (3)
comment:2 by , 5 years ago
I'm not sure AdoptSystemColors will work here, my guess is these are using BTextView which is normally B_DOCUMENT_TEXT_COLOR on B_DOCUMENT_BACKGROUND_COLOR, and change only the foreground. AdoptSystemColors would just go back to document colors instead of panel ones.
So we need to explicitly set B_PANEL_TEXT_COLOR for these, and no one noticed because in the default theme both colors are the same (black text).
comment:3 by , 3 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fix merged in hrev55882
It looks to me like none of the translators ever set a fg color explicitly :g edit: if i am reading the docs right i should be able to just use AdoptSystemColors() instead and it should work.