File tree 1 file changed +7
-10
lines changed
frameworks/js-bindings/bindings/script/studio/parsers 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 411
411
}
412
412
413
413
}
414
-
415
- var bgStartColor = json [ "FirstColor" ] ;
416
- var bgEndColor = json [ "EndColor" ] ;
417
- if ( bgStartColor != null && bgEndColor != null ) {
418
- var startC = getColor ( bgStartColor ) ;
419
- if ( bgEndColor [ "R" ] == null && bgEndColor [ "G" ] == null && bgEndColor [ "B" ] == null )
420
- widget . setBackGroundColor ( startC ) ;
421
- else
422
- widget . setBackGroundColor ( startC , getColor ( bgEndColor ) ) ;
423
- }
414
+
415
+ var firstColor = json [ "FirstColor" ] ;
416
+ var endColor = json [ "EndColor" ] ;
417
+ if ( endColor [ "R" ] != null && endColor [ "G" ] != null && endColor [ "B" ] != null )
418
+ widget . setBackGroundColor ( getColor ( firstColor ) , getColor ( endColor ) ) ;
419
+ else
420
+ widget . setBackGroundColor ( getColor ( json [ "SingleColor" ] ) ) ;
424
421
425
422
var colorVector = json [ "ColorVector" ] ;
426
423
if ( colorVector != null )
You can’t perform that action at this time.
0 commit comments