fix: most profiles
This commit is contained in:
parent
db50975174
commit
a2ecc5e30e
8 changed files with 112 additions and 30 deletions
|
@ -84,5 +84,14 @@ class ColorEditor {
|
|||
}
|
||||
return adjustedColor
|
||||
}
|
||||
|
||||
fun Int.toCssColor(): String {
|
||||
var base = "rgba("
|
||||
base += "${Color.red(this)}, "
|
||||
base += "${Color.green(this)}, "
|
||||
base += "${Color.blue(this)}, "
|
||||
base += "${Color.alpha(this) / 255.0})"
|
||||
return base
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue