mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
fix: fix regression after colors simplifications
This commit is contained in:
@ -100,7 +100,7 @@ export class Color implements definition.Color {
|
||||
}
|
||||
|
||||
let intVal = parseInt(hex, 16);
|
||||
if (length === 6) {
|
||||
if (hex.length === 6) {
|
||||
// add the alpha component since the provided string is RRGGBB
|
||||
intVal = (intVal & 0x00ffffff) + 0xff000000;
|
||||
}
|
||||
|
Reference in New Issue
Block a user