chore: support complete CSS color codes

Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
This commit is contained in:
The one with the braid 2023-09-04 12:23:44 +02:00
parent 92319c20d2
commit a41784b77e
2 changed files with 362 additions and 25 deletions

View file

@ -6,7 +6,7 @@ abstract class MaybeDecode {
static int? maybeColor(String? colorCode) {
if (colorCode == null) return null;
return parseRgbToInt(colorCode);
return fromCssColor(colorCode);
}
static DateTime? maybeDateTime(String? timeStamp) {