toggle menu
ui
android
common
switch theme
search in API
ui
/
com.vanniktech.ui
/
Color
Color
@
Serializable
(
with
=
ColorSerializer::class
)
@
JvmInline
value
class
Color
(
val
argb
:
Int
)
:
Parcelable
Members
Members & Extensions
Constructors
Color
Link copied to clipboard
constructor
(
argb
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
argb
Link copied to clipboard
val
argb
:
Int
Functions
brighten
Link copied to clipboard
fun
brighten
(
factor
:
Float
)
:
Color
Will return a new
Color
which is darker when
factor
is below 1 and brighter if
factor
is above 1.
colored
Text
Link copied to clipboard
android
fun
Color
.
coloredText
(
text
:
CharSequence
?
)
:
SpannableString
?
color
State
List
Link copied to clipboard
android
fun
Color
.
colorStateList
(
)
:
ColorStateList
copy
Link copied to clipboard
fun
copy
(
alpha
:
Float
=
alpha() / FLOAT_VALUE
,
red
:
Float
=
red() / FLOAT_VALUE
,
green
:
Float
=
green() / FLOAT_VALUE
,
blue
:
Float
=
blue() / FLOAT_VALUE
)
:
Color
fun
copy
(
alpha
:
Int
=
alpha()
,
red
:
Int
=
red()
,
green
:
Int
=
green()
,
blue
:
Int
=
blue()
)
:
Color
html
Rgba
String
Link copied to clipboard
fun
htmlRgbaString
(
)
:
String
should
Use
Black
Font
Link copied to clipboard
fun
shouldUseBlackFont
(
)
:
Boolean
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String