Package-level declarations
Types
A KSerializer for SerializableColor
Default implementation of a KalugaColorLoader.
Default implementation of a KalugaColorLoader.
Default implementation of a KalugaColorLoader.
All HTML supported colors https://htmlcolorcodes.com/color-names/
Default implementation of a FontLoader.
Default implementation of a FontLoader.
Default implementation of a FontLoader.
Default implementation of an ImageLoader.
Default implementation of an ImageLoader.
Default implementation of an ImageLoader.
Default implementation of a StringLoader.
Default implementation of a StringLoader.
Default implementation of a StringLoader.
Loads a KalugaFont based on a provided identifier.
Font weights as defined by W3
Loads a KalugaImage based on a provided identifier.
Class describing a color
Class describing a color
Class describing a color
Loads a KalugaColor based on a provided identifier.
Class describing a font
Class describing an image.
Class describing an image.
A style to apply to a StyledString when StringStyleAttribute.Link is applied
A KSerializer for SerializableRGBColor
A wrapper for KalugaColor that allows it to be serialized
A wrapper for KalugaColor.RGBColor that allows it to be serialized
Loads a String based on a provided identifier.
A style attribute that can be applied to a StyledString
A text configured with StringStyleAttribute
A text configured with StringStyleAttribute
A text configured with StringStyleAttribute
Builder for creating a StyledString
Builder for creating a StyledString
Builder for creating a StyledString
A KalugaImage tinted with a given KalugaColor
Properties
Gets the alpha value of the color in a range between 0.0 and 1.0.
Gets the alpha value of the color in a range between 0.0 and 1.0
Gets the alpha value of the color in a range between 0.0 and 1.0.
Gets the alpha value of the color in a range between 0 and 255.
Gets the alpha value of the color in a range between 0 and 255
Gets the alpha value of the color in a range between 0 and 255.
Gets the blue value of the color in a range between 0.0 and 1.0.
Gets the blue value of the color in a range between 0.0 and 1.0
Gets the blue value of the color in a range between 0.0 and 1.0.
Gets the blue value of the color in a range between 0 and 255.
Gets the blue value of the color in a range between 0 and 255
Gets the green value of the color in a range between 0 and 255.
Gets the KalugaColor.RGBColor equivalent to this HSLColor
The default bold system KalugaFont
The default bold system KalugaFont
The default bold system KalugaFont
The default italic system KalugaFont
The default italic system KalugaFont
The default italic system KalugaFont
The default monospace system KalugaFont
The default monospace system KalugaFont
The default monospace system KalugaFont
Gets a Drawable of a TintedImage or null if the TintedImage cannot be made into a Drawable
Creates a KalugaColor.DarkLightColor from another by using the KalugaColor.DarkLightColor.darkColor as the default color and vice versa.
Gets the green value of the color in a range between 0.0 and 1.0.
Gets the green value of the color in a range between 0.0 and 1.0
Gets the green value of the color in a range between 0.0 and 1.0.
Gets the green value of the color in a range between 0 and 255.
Gets the green value of the color in a range between 0 and 255
Gets the blue value of the color in a range between 0 and 255.
The hex string representing this color.
Gets the HSLColor equivalent to this KalugaColor.RGBColor
The inverted KalugaColor.DarkLightColor. Each value will be inverted individually.
The inverted KalugaColor.RGBColor.
When true the application is in Dark Mode.
When true the application is in Dark Mode.
When true the application is in Dark Mode.
Gets the plain string of a StyledString
Gets the plain string of a StyledString
Gets the plain string of a StyledString
Gets the red value of the color in a range between 0.0 and 1.0.
Gets the red value of the color in a range between 0.0 and 1.0
Gets the red value of the color in a range between 0.0 and 1.0.
Gets the red value of the color in a range between 0 and 255.
Gets the red value of the color in a range between 0 and 255
Gets the red value of the color in a range between 0 and 255.
Gets a SerializableColor instance of this color
Gets a SerializableRGBColor instance of this color
Gets the tinted UIImage of a TintedImage
Functions
Gets the alpha value of the color forDarkMode in a range between 0.0 and 1.0
Gets the alpha value of the color forDarkMode in a range between 0 and 255
Treats this string as a resource identifier for a KalugaColor and grabs the associated KalugaColor
Treats this string as a resource identifier for a KalugaFont and grabs the associated KalugaFont
Treats this string as a resource identifier for a KalugaColor and grabs the associated KalugaImage
Looks for a substring in the String and returns a Pair or StringStyleAttribute and IntRange that should be provided to StyledStringBuilder to apply the StringStyleAttribute to the first occurrence of the substring
Gets the blue value of the color forDarkMode in a range between 0.0 and 1.0
Gets the blue value of the color forDarkMode in a range between 0 and 255
Blends a KalugaColor with another color using BlendMode.ColorBurn
Blends a KalugaColor with another color using BlendMode.ColorBlend
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0.0 and 1.0.
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0 and 255.
Attempts to parse a given String into a KalugaColor.RGBColor. The string should be formatted as either #AARRGGBB or #RRGGBB for the parsing to succeed.
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0.0 and 1.0.
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0 and 255.
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0.0 and 1.0.
Creates a KalugaColor.RGBColor using red, green, blue, and (optional) alpha, all ranging between 0 and 255.
Creates a system font with a given FontWeight, FontStyle and FontTrait
Blends a KalugaColor with another color using BlendMode.Darken
Decreases the lightness of a KalugaColor by this factor. If this is a KalugaColor.DarkLightColor each component wll be darkened individually.
Decreases the lightness of a KalugaColor.RGBColor by this factor.
Blends a KalugaColor with another color using BlendMode.Difference
Blends a KalugaColor with another color using BlendMode.ColorDodge
Blends a KalugaColor with another color using BlendMode.Exclusion
Gets the green value of the color forDarkMode in a range between 0.0 and 1.0
Gets the green value of the color forDarkMode in a range between 0 and 255
Blends a KalugaColor with another color using BlendMode.HardLight
Gets the hex string representing the color forDarkMode
Blends a KalugaColor with another color using BlendMode.Hue
Blends a KalugaColor with another color using BlendMode.Lighten
Increases the lightness of a KalugaColor by this factor. If this is a KalugaColor.DarkLightColor each component wll be lightened individually.
Increases the lightness of a KalugaColor.RGBColor by this factor.
Blends a KalugaColor with another color using BlendMode.Luminosity
Blends a KalugaColor with another color using BlendMode.Multiply
Blends a KalugaColor with another color using BlendMode.Normal
Blends a KalugaColor with another color using BlendMode.Overlay
Gets the red value of the color forDarkMode in a range between 0.0 and 1.0
Gets the red value of the color forDarkMode in a range between 0 and 255
Gets the KalugaColor.RGBColor
Blends a KalugaColor with another color using BlendMode.Saturation
Blends a KalugaColor with another color using BlendMode.Screen
Blends a KalugaColor with another color using BlendMode.SoftLight
Creates a StyledString from a String
Attempts to create a new KalugaImage that is tinted in a given KalugaColor
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.