mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 04:00:53 +00:00
Fixed: #2381 Font color values with alpha allowed in html edittext, but alpha ignored
This commit is contained in:
@@ -6393,8 +6393,14 @@ public class XFLConverter {
|
||||
}
|
||||
String c = attributes.getValue("color");
|
||||
if (c != null) {
|
||||
color = c;
|
||||
colorAlpha = 255;
|
||||
if (c.matches("^#[0-9a-fA-F]{8}$")) {
|
||||
color = "#" + c.substring(3);
|
||||
} else if (c.matches("^#[0-9a-fA-F]{6}$")) {
|
||||
color = c;
|
||||
colorAlpha = 255;
|
||||
} else {
|
||||
//wrong format, do not change color
|
||||
}
|
||||
}
|
||||
String f = attributes.getValue("face");
|
||||
if (f != null) {
|
||||
|
||||
Reference in New Issue
Block a user