Move radio button styling to a single place
This commit is contained in:
parent
736ae08fcd
commit
ec9b5a0bd2
6 changed files with 24 additions and 18 deletions
8
src/displayapp/screens/Styles.cpp
Normal file
8
src/displayapp/screens/Styles.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "Styles.h"
|
||||
|
||||
void Pinetime::Applications::Screens::SetRadioButtonStyle(lv_obj_t* checkbox) {
|
||||
lv_obj_set_style_local_radius(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_DEFAULT, LV_RADIUS_CIRCLE);
|
||||
lv_obj_set_style_local_border_width(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_CHECKED, 9);
|
||||
lv_obj_set_style_local_border_color(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_CHECKED, LV_COLOR_GREEN);
|
||||
lv_obj_set_style_local_bg_color(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_CHECKED, LV_COLOR_WHITE);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue