diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2022-08-16 08:21:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-16 08:21:23 +0300 |
| commit | 78fc1682dac113fb6583d29de4a5f440c2e42363 (patch) | |
| tree | a64e1bb2ba0f240fcec5a487a7d0fe1c55c24e74 /src/displayapp/screens/settings/SettingShakeThreshold.cpp | |
| parent | d6aa767bdac84ac7ed8469288ae3400b5c0b5698 (diff) | |
Centralize most color definitions (#1258)
Diffstat (limited to 'src/displayapp/screens/settings/SettingShakeThreshold.cpp')
| -rw-r--r-- | src/displayapp/screens/settings/SettingShakeThreshold.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/settings/SettingShakeThreshold.cpp b/src/displayapp/screens/settings/SettingShakeThreshold.cpp index aac1eaff..de46f7de 100644 --- a/src/displayapp/screens/settings/SettingShakeThreshold.cpp +++ b/src/displayapp/screens/settings/SettingShakeThreshold.cpp @@ -3,6 +3,7 @@ #include "displayapp/DisplayApp.h" #include "displayapp/screens/Screen.h" #include "displayapp/screens/Symbols.h" +#include "displayapp/InfiniTimeTheme.h" using namespace Pinetime::Applications::Screens; @@ -123,8 +124,7 @@ void SettingShakeThreshold::UpdateSelected(lv_obj_t* object, lv_event_t event) { vCalTime = xTaskGetTickCount(); lv_label_set_text_static(calLabel, "Ready!"); lv_obj_set_click(positionArc, false); - lv_obj_set_style_local_bg_color(calButton, LV_BTN_PART_MAIN, LV_STATE_CHECKED, LV_COLOR_MAKE(0x0, 0xb0, 0x0)); - lv_obj_set_style_local_bg_color(calButton, LV_BTN_PART_MAIN, LV_STATE_CHECKED, LV_COLOR_MAKE(0x0, 0xb0, 0x0)); + lv_obj_set_style_local_bg_color(calButton, LV_BTN_PART_MAIN, LV_STATE_CHECKED, Colors::highlight); } else if (lv_btn_get_state(calButton) == LV_BTN_STATE_RELEASED) { calibrating = 0; lv_obj_set_click(positionArc, true); |
