Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Helper functions for loading theme values.
Synopsis
- collectThemeField_ :: WidgetEnv s e -> Lens' StyleState (Maybe t) -> Lens' ThemeState (Maybe t) -> Style -> Style
- collectTheme :: WidgetEnv s e -> Lens' ThemeState StyleState -> Style
- collectUserTheme :: WidgetEnv s e -> String -> Style
Documentation
:: WidgetEnv s e | The widget environment (to get the theme). |
-> Lens' StyleState (Maybe t) | The target field of the style. |
-> Lens' ThemeState (Maybe t) | The source field of the theme. |
-> Style | The target style. |
-> Style | The updated style. |
Updates a the field of style with the field value from the active theme.
:: WidgetEnv s e | The widget environment (to get the theme). |
-> Lens' ThemeState StyleState | The field into the theme |
-> Style | The collected style. |
Collects all the style states from a given field in the active theme.