Replace icomoon system font with material design icons (#1228)

This commit is contained in:
Riku Isokoski
2022-07-21 22:56:34 +03:00
committed by GitHub
parent 9ee1160578
commit d6165e72b7
9 changed files with 221 additions and 43702 deletions

View File

@@ -22,7 +22,7 @@ FlashLight::FlashLight(Pinetime::Applications::DisplayApp* app,
flashLight = lv_label_create(lv_scr_act(), nullptr);
lv_obj_set_style_local_text_font(flashLight, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &lv_font_sys_48);
lv_label_set_text_static(flashLight, Symbols::highlight);
lv_label_set_text_static(flashLight, Symbols::flashlight);
lv_obj_align(flashLight, nullptr, LV_ALIGN_CENTER, 0, 0);
for (auto& indicator : indicators) {

View File

@@ -39,17 +39,16 @@ namespace Pinetime {
static constexpr const char* home = "\xEF\x80\x95";
// lv_font_sys_48.c
static constexpr const char* settings = "\xEE\xA4\x82"; // e902
static constexpr const char* settings = "\xEE\xA2\xB8";
static constexpr const char* brightnessHigh = "\xEE\xA4\x84"; // e904
static constexpr const char* brightnessLow = "\xEE\xA4\x85"; // e905
static constexpr const char* brightnessMedium = "\xEE\xA4\x86"; // e906
static constexpr const char* brightnessLow = "\xEE\x8E\xAA";
static constexpr const char* brightnessMedium = "\xEE\x8E\xAB";
static constexpr const char* brightnessHigh = "\xEE\x8E\xAC";
static constexpr const char* notificationsOff = "\xEE\xA4\x8B"; // e90b
static constexpr const char* notificationsOn = "\xEE\xA4\x8C"; // e90c
static constexpr const char* highlight = "\xEE\xA4\x87"; // e907
static constexpr const char* notificationsOff = "\xEE\x9F\xB6";
static constexpr const char* notificationsOn = "\xEE\x9F\xB7";
static constexpr const char* flashlight = "\xEF\x80\x8B";
}
}
}

View File

@@ -72,7 +72,7 @@ QuickSettings::QuickSettings(Pinetime::Applications::DisplayApp* app,
lv_obj_t* lbl_btn;
lbl_btn = lv_label_create(btn2, nullptr);
lv_obj_set_style_local_text_font(lbl_btn, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &lv_font_sys_48);
lv_label_set_text_static(lbl_btn, Symbols::highlight);
lv_label_set_text_static(lbl_btn, Symbols::flashlight);
btn3 = lv_btn_create(lv_scr_act(), nullptr);
btn3->user_data = this;