Centralize most color definitions (#1258)

This commit is contained in:
Riku Isokoski 2022-08-16 08:21:23 +03:00 committed by GitHub
parent d6aa767bda
commit 78fc1682da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 105 additions and 90 deletions

View file

@ -1,8 +1,9 @@
#include "Styles.h"
#include "displayapp/InfiniTimeTheme.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_MAKE(0x0, 0xb0, 0x0));
lv_obj_set_style_local_border_color(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_CHECKED, Colors::highlight);
lv_obj_set_style_local_bg_color(checkbox, LV_CHECKBOX_PART_BULLET, LV_STATE_CHECKED, LV_COLOR_WHITE);
}