LVGL 8.0: lv_style_plain - A Simple and Clean Style
lv_style_plain is a style in LVGL 8.0 which sets all the properties to their default values. It's a clean and simple style that can be used as a base to create other styles.
Here are the default values for lv_style_plain:
- Font: LV_FONT_DEFAULT
- Text color: LV_COLOR_BLACK
- Text letter spacing: 0
- Text line spacing: 0
- Text decoration: none
- Text align: left
- Background color: LV_COLOR_WHITE
- Border width: 0
- Border color: LV_COLOR_BLACK
- Border opacity: OPA_COVER
- Radius: 0
- Shadow width: 0
- Shadow color: LV_COLOR_BLACK
- Shadow opacity: OPA_TRANSP
- Padding: 0
To use lv_style_plain, you can create a new style and set it to lv_style_plain:
lv_style_t style_plain;
lv_style_copy(&style_plain, &lv_style_plain);
You can then modify the properties of this style to create your own custom style.
原文地址: https://www.cveoy.top/t/topic/oczI 著作权归作者所有。请勿转载和采集!