Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color alpha channel #67

Open
PierreHei opened this issue Aug 26, 2016 · 1 comment
Open

Color alpha channel #67

PierreHei opened this issue Aug 26, 2016 · 1 comment

Comments

@PierreHei
Copy link

Everything is in the title, none of the widgets allows to set the alpha field of the color class

@flozz
Copy link
Member

flozz commented Aug 26, 2016

To fully support the alpha channel in PhotonUI widget, the following widgets must be modified:

  • photonui.Color:
    • setRgbString() must be implemented → done: get/setCssRgbString()
    • setRgbaString() must be implemented → done: get/setCssRgbaString()
    • get|setRgbaHexString() must be implemented → done
    • a fromString() method must be implemented to import color from any format (hex, rgb, rgba, named color,...) → done
  • photonui.ColorPicker:
    • must provide an option to enable it to handle the alpha channel (by default it must only allow to update HSB informations)
    • must implement a kind of slider to allow to update the alpha channel (can be disabled)
    • must display a checkerboard on the background of the preview field

color-picker-alpha svg

  • photonui.ColorPalette:
    • must display a checkerboard on the background of the colors that have alpha
  • photonui.ColorButton:
    • must display a checkerboard on the background of the colors that have alpha
  • photonui.ColorPickerDialog:
    • must provide an option to enable it to handle the alpha channel (by default it must only allow to update HSB and RGB informations)
    • must provide a slider to manipulate the alpha channel

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

No branches or pull requests

2 participants