Skip to content

Commit 0706d4f

Browse files
committed
colors: Move violet to InfiniTimeTheme to allow reuse
1 parent ad73e1b commit 0706d4f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/displayapp/InfiniTimeTheme.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace Colors {
77
static constexpr lv_color_t orange = LV_COLOR_MAKE(0xff, 0xb0, 0x0);
88
static constexpr lv_color_t green = LV_COLOR_MAKE(0x0, 0xb0, 0x0);
99
static constexpr lv_color_t blue = LV_COLOR_MAKE(0x0, 0x50, 0xff);
10+
static constexpr lv_color_t violet = LV_COLOR_MAKE(0x60, 0x00, 0xff);
1011
static constexpr lv_color_t lightGray = LV_COLOR_MAKE(0xb0, 0xb0, 0xb0);
1112
static constexpr lv_color_t gray = LV_COLOR_MAKE(0x50, 0x50, 0x50);
1213

src/displayapp/screens/settings/QuickSettings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ QuickSettings::QuickSettings(Pinetime::Applications::DisplayApp* app,
9090
lv_obj_set_event_cb(btn3, ButtonEventHandler);
9191
lv_obj_add_style(btn3, LV_BTN_PART_MAIN, &btn_style);
9292
lv_obj_set_style_local_bg_color(btn3, LV_BTN_PART_MAIN, static_cast<lv_state_t>(ButtonState::NotificationsOff), LV_COLOR_RED);
93-
static constexpr lv_color_t violet = LV_COLOR_MAKE(0x60, 0x00, 0xff);
94-
lv_obj_set_style_local_bg_color(btn3, LV_BTN_PART_MAIN, static_cast<lv_state_t>(ButtonState::Sleep), violet);
93+
lv_obj_set_style_local_bg_color(btn3, LV_BTN_PART_MAIN, static_cast<lv_state_t>(ButtonState::Sleep), Colors::violet);
9594
lv_obj_set_size(btn3, buttonWidth, buttonHeight);
9695
lv_obj_align(btn3, nullptr, LV_ALIGN_IN_BOTTOM_LEFT, buttonXOffset, 0);
9796

0 commit comments

Comments
 (0)