fix: most profiles

This commit is contained in:
rebelonion 2024-03-05 02:29:00 -06:00
parent db50975174
commit a2ecc5e30e
8 changed files with 112 additions and 30 deletions

View file

@ -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
}
}
}