Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Color popup, displayed inside its parent container as a colored square. When clicked, it opens a color picker overlay.
Shows sliders for the color components.
colorPopup colorLens
Optionally shows a slider for the alpha channel.
colorPopup_ colorLens [showAlpha]
Synopsis
- colorPopup :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> WidgetNode s e
- colorPopup_ :: (WidgetModel s, WidgetEvent e) => ALens' s Color -> [ColorPopupCfg s e] -> WidgetNode s e
- colorPopupV :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> WidgetNode s e
- colorPopupV_ :: (WidgetModel s, WidgetEvent e) => Color -> (Color -> e) -> [ColorPopupCfg s e] -> WidgetNode s e
Constructors
:: (WidgetModel s, WidgetEvent e) | |
=> ALens' s Color | The lens into the model. |
-> WidgetNode s e | The created color popup. |
Creates a colorPopup using the given lens.
:: (WidgetModel s, WidgetEvent e) | |
=> ALens' s Color | The lens into the model. |
-> [ColorPopupCfg s e] | The config options. |
-> WidgetNode s e | The created color popup. |
Creates a colorPopup using the given lens. Accepts config.
:: (WidgetModel s, WidgetEvent e) | |
=> Color | The current value. |
-> (Color -> e) | The event to raise on change. |
-> WidgetNode s e | The created color popup. |
Creates a colorPopup using the given value and onChange
event handler.
:: (WidgetModel s, WidgetEvent e) | |
=> Color | The current value. |
-> (Color -> e) | The event to raise on change. |
-> [ColorPopupCfg s e] | The config options. |
-> WidgetNode s e | The created color popup. |
Creates a colorPopup using the given value and onChange
event handler.
Accepts config.