1# 2# Using the border style properties 3# 4style = lv.style_t() 5style.init() 6 7# Set a background color and a radius 8style.set_radius(10) 9style.set_bg_opa(lv.OPA.COVER) 10style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 1)) 11 12# Add border to the bottom+right 13style.set_border_color(lv.palette_main(lv.PALETTE.BLUE)) 14style.set_border_width(5) 15style.set_border_opa(lv.OPA._50) 16style.set_border_side(lv.BORDER_SIDE.BOTTOM | lv.BORDER_SIDE.RIGHT) 17 18# Create an object with the new style 19obj = lv.obj(lv.scr_act()) 20obj.add_style(style, 0) 21obj.center() 22