This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let widget = new ListWidget() | |
// Background | |
let startColor = new Color("ff7b1c") | |
let endColor = new Color("fe9e0b") | |
let gradient = new LinearGradient() | |
gradient.colors = [startColor, endColor] | |
gradient.locations = [0.0, 1] | |
widget.backgroundGradient = gradient |