mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-27 14:41:01 +00:00
fix: most profiles
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user