Add images
This commit is contained in:
parent
7b3c48a0e5
commit
2dc10ffd41
|
@ -17,8 +17,8 @@
|
||||||
"jetbrains_mono_42": {
|
"jetbrains_mono_42": {
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"disabledfile": "JetBrainsMono-Regular.ttf",
|
"file": "JetBrainsMono-Regular.ttf",
|
||||||
"file": "Vulf Mono Light Italic.ttf",
|
"disabledfile": "Vulf Mono Light Italic.ttf",
|
||||||
"range": "0x20, 0x25, 0x27, 0x2b, 0x2d, 0x30-0x3a, 0x4b-0x4d, 0x61-0x7a"
|
"range": "0x20, 0x25, 0x27, 0x2b, 0x2d, 0x30-0x3a, 0x4b-0x4d, 0x61-0x7a"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -32,6 +32,17 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController,
|
||||||
sMinute = 99;
|
sMinute = 99;
|
||||||
statusIcons.Create();
|
statusIcons.Create();
|
||||||
|
|
||||||
|
lv_obj_t* bg = lv_img_create(lv_scr_act(), nullptr);
|
||||||
|
lv_img_set_src(bg, "F:/images/aor.bin");
|
||||||
|
lv_img_set_auto_size(bg, false);
|
||||||
|
lv_obj_set_size(bg, 240, 240);
|
||||||
|
// lv_img_set_src(bg, image.fileName);
|
||||||
|
lv_img_set_offset_x(bg, 0);
|
||||||
|
lv_img_set_offset_y(bg, 0);
|
||||||
|
// lv_obj_set_style_local_image_recolor_opa(bg, LV_IMG_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_COVER);
|
||||||
|
// lv_obj_set_style_local_image_recolor(bg, LV_IMG_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_CYAN);
|
||||||
|
lv_obj_align(bg, nullptr, LV_ALIGN_CENTER, 0, 0);
|
||||||
|
|
||||||
notificationIcon = lv_label_create(lv_scr_act(), nullptr);
|
notificationIcon = lv_label_create(lv_scr_act(), nullptr);
|
||||||
lv_obj_set_style_local_text_color(notificationIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_LIME);
|
lv_obj_set_style_local_text_color(notificationIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_LIME);
|
||||||
lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false));
|
lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false));
|
||||||
|
|
|
@ -5,7 +5,7 @@ message(STATUS "Using ${LV_FONT_CONV} to generate font files")
|
||||||
|
|
||||||
find_program(LV_IMG_CONV "lv_img_conv.py" NO_CACHE REQUIRED
|
find_program(LV_IMG_CONV "lv_img_conv.py" NO_CACHE REQUIRED
|
||||||
HINTS "${CMAKE_CURRENT_SOURCE_DIR}")
|
HINTS "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
message(STATUS "Using ${LV_IMG_CONV} to generate font files")
|
message(STATUS "Using ${LV_IMG_CONV} to generate image files")
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
|
||||||
# FindPython3 module introduces with CMake 3.12
|
# FindPython3 module introduces with CMake 3.12
|
||||||
|
|
|
@ -6,6 +6,13 @@
|
||||||
"binary_format": "ARGB8565_RBSWAP",
|
"binary_format": "ARGB8565_RBSWAP",
|
||||||
"target_path": "/images/"
|
"target_path": "/images/"
|
||||||
},
|
},
|
||||||
|
"aor" : {
|
||||||
|
"sources": "images/aor.png",
|
||||||
|
"color_format": "CF_TRUE_COLOR_ALPHA",
|
||||||
|
"output_format": "bin",
|
||||||
|
"binary_format": "ARGB8565_RBSWAP",
|
||||||
|
"target_path": "/images/"
|
||||||
|
},
|
||||||
"navigation0" : {
|
"navigation0" : {
|
||||||
"sources": "images/navigation0.png",
|
"sources": "images/navigation0.png",
|
||||||
"color_format": "CF_INDEXED_1_BIT",
|
"color_format": "CF_INDEXED_1_BIT",
|
||||||
|
|
BIN
src/resources/images/aor.png
Executable file
BIN
src/resources/images/aor.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 161 KiB |
Loading…
Reference in New Issue
Block a user