DarkLightColor

actual data class DarkLightColor : KalugaColor

A KalugaColor that has a different RGBColor for isInDarkMode being true or false.

A KalugaColor that has a different RGBColor for isInDarkMode being true or false.

actual data class DarkLightColor : KalugaColor

A KalugaColor that has a different RGBColor for isInDarkMode being true or false.

Constructors

Link copied to clipboard
constructor(defaultColor: KalugaColor.RGBColor, darkColor: KalugaColor.RGBColor = defaultColor)
constructor(@ColorInt defaultColor: Int, @ColorInt darkModeColor: Int = defaultColor)

Constructor to create from ColorInt

constructor(uiColor: UIColor)

Properties

Link copied to clipboard
open override val currentColor: Int

A ColorInt describing the Color for the current ui mode.

Link copied to clipboard

the RGBColor to use when isInDarkMode is true.

the RGBColor to use when isInDarkMode is true.

the RGBColor to use when isInDarkMode is true.

Link copied to clipboard

the RGBColor to use when isInDarkMode is false.

the RGBColor to use when isInDarkMode is false.

the RGBColor to use when isInDarkMode is false.

Link copied to clipboard

Creates a KalugaColor.DarkLightColor from another by using the KalugaColor.DarkLightColor.darkColor as the default color and vice versa.

Link copied to clipboard

The inverted KalugaColor.DarkLightColor. Each value will be inverted individually.

Link copied to clipboard
Link copied to clipboard
open override val uiColor: UIColor

the UIColor describing the color

Functions

Link copied to clipboard

Gets the alpha value of the color forDarkMode in a range between 0.0 and 1.0

Link copied to clipboard

Gets the alpha value of the color forDarkMode in a range between 0 and 255

Link copied to clipboard

Gets the blue value of the color forDarkMode in a range between 0.0 and 1.0

Link copied to clipboard

Gets the blue value of the color forDarkMode in a range between 0 and 255

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorBurn

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorBlend

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Darken

Link copied to clipboard

Decreases the lightness of a KalugaColor by this factor. If this is a KalugaColor.DarkLightColor each component wll be darkened individually.

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Difference

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.ColorDodge

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Exclusion

Link copied to clipboard

Gets the green value of the color forDarkMode in a range between 0.0 and 1.0

Link copied to clipboard

Gets the green value of the color forDarkMode in a range between 0 and 255

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.HardLight

Link copied to clipboard

Gets the hex string representing the color forDarkMode

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Hue

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Lighten

Link copied to clipboard

Increases the lightness of a KalugaColor by this factor. If this is a KalugaColor.DarkLightColor each component wll be lightened individually.

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Luminosity

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Multiply

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Normal

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Overlay

Link copied to clipboard

Gets the red value of the color forDarkMode in a range between 0.0 and 1.0

Link copied to clipboard

Gets the red value of the color forDarkMode in a range between 0 and 255

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Saturation

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.Screen

Link copied to clipboard

Blends a KalugaColor with another color using BlendMode.SoftLight