Skip to content

MaterialDesignJsVeiwRenderer / view.core.renderers / DefaultTheme

DefaultTheme

open class DefaultTheme

The theme that is applied to views by default.

Note that the Theme won't modify view properties that already have a value, it will just set a value if the view property is not initialized.

This theme edits view, before they are rendered, as follows:

Constructors

<init>
DefaultTheme()
The theme that is applied to views by default.

Properties

buttonAccentColor
open val buttonAccentColor:Color
If true, buttons will have the Material theme's accent color.

buttonRaised
open val buttonRaised:Boolean
If true, buttons will be raised by default.

buttonRipple
open val buttonRipple:Boolean
If true, a ripple animation when be played whenever a button is pressed.

horizontalMargin
open val horizontalMargin:Double
Specifies the horizontal margin for views in pixels.

verticalMargin
open val verticalMargin:Double
Specifies the vertical margin for views in pixels.

Functions

setIfEmpty
fun <K, V>MutableMap<K,V>.setIfEmpty(k:K, v:V):Unit

throwExcp
fun throwExcp():Unit