What do you want to achieve?
Create a beautiful switch in lvgl.
What have you tried so far?
Gemini ai conversion code.
Code to reproduce
beautiful_button.zip (1.3 KB)
Screenshot


Environment
- MCU/MPU/Board:
ESP32-S3 - LVGL version: See
lv_version.h
9.3.0