[
https://issues.apache.org/jira/browse/PIVOT-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dirk Moebius updated PIVOT-496:
-------------------------------
Attachment: test.wtkx
The attached file test.wtkx demonstrates the error: a TextInput with
transparent background and border color.
> TerraTheme.darken(Color) doesn't preserve alpha channel
> -------------------------------------------------------
>
> Key: PIVOT-496
> URL: https://issues.apache.org/jira/browse/PIVOT-496
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.4, 1.5
> Reporter: Dirk Moebius
> Priority: Minor
> Attachments: pivot-496-terratheme-color.patch, test.wtkx
>
>
> A color with alpha value which is darkened through TerraTheme.darken(Color)
> looses its alpha channel. This happens eg. with the borders around a
> TextArea. As a result, you cannot currently have a TextArea with transparent
> borders.
> The same applies to TerraTheme.brighten(Color).
> The error is in TerraTheme.adjustBrightness(Color color, float adjustment).
> It creates a new Color instance but invokes the wrong constructor so the
> alpha channel gets masked out.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.