monomer-1.0.0.1: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Containers.ThemeSwitch

Description

Switches to the provided theme for its child nodes.

Note: this widget ignores style settings. If you need to display borders or any other kind of style configuration, set it on the child node or wrap the themeSwitch widget in a Monomer.Widgets.Containers.Box.

Synopsis

Configuration

data ThemeSwitchCfg Source #

Configuration options for themeSwitch:

  • themeClearBg: indicates the clear color of the theme should be applied before rendering children. Defaults to False.

themeClearBg :: ThemeSwitchCfg Source #

Indicates the clear color should be applied before rendering children.

themeClearBg_ :: Bool -> ThemeSwitchCfg Source #

Sets whether the clear color should be applied before rendering children.

Constructors

themeSwitch :: Theme -> WidgetNode s e -> WidgetNode s e Source #

Switches to a new theme starting from its child node.

themeSwitch_ :: Theme -> [ThemeSwitchCfg] -> WidgetNode s e -> WidgetNode s e Source #

Switches to a new theme starting from its child node. Accepts config.