1# 2# Using the Size, Position and Padding style properties 3# 4style = lv.style_t() 5style.init() 6style.set_radius(5) 7 8# Make a gradient 9style.set_width(150) 10style.set_height(lv.SIZE.CONTENT) 11 12style.set_pad_ver(20) 13style.set_pad_left(5) 14 15style.set_x(lv.pct(50)) 16style.set_y(80) 17 18# Create an object with the new style 19obj = lv.obj(lv.scr_act()) 20obj.add_style(style, 0) 21 22label = lv.label(obj) 23label.set_text("Hello") 24 25