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


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.

Reply via email to