You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/05/18 14:56:43 UTC
[jira] Resolved: (PIVOT-496) TerraTheme.darken(Color) doesn't
preserve alpha channel
[ https://issues.apache.org/jira/browse/PIVOT-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown resolved PIVOT-496.
------------------------------
Fix Version/s: 1.5
Resolution: Fixed
Patch applied.
> 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
> Fix For: 1.5
>
> 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.