diff options
Diffstat (limited to 'src/displayapp/screens/Gauge.cpp')
| -rw-r--r-- | src/displayapp/screens/Gauge.cpp | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/displayapp/screens/Gauge.cpp b/src/displayapp/screens/Gauge.cpp index 1b9f2c6..b2e604d 100644 --- a/src/displayapp/screens/Gauge.cpp +++ b/src/displayapp/screens/Gauge.cpp @@ -2,21 +2,21 @@ #include "../DisplayApp.h" using namespace Pinetime::Applications::Screens; -extern lv_font_t jetbrains_mono_extrabold_compressed; -extern lv_font_t jetbrains_mono_bold_20; Gauge::Gauge(Pinetime::Applications::DisplayApp *app) : Screen(app) { /*Create a style*/ - lv_style_copy(&style, &lv_style_pretty_color); - style.body.main_color = LV_COLOR_CYAN; /*Line color at the beginning*/ - style.body.grad_color = LV_COLOR_RED; /*Line color at the end*/ - style.body.padding.left = 10; /*Scale line length*/ - style.body.padding.inner = 8 ; /*Scale label padding*/ - style.body.border.color = lv_color_hex3(0x333); /*Needle middle circle color*/ - style.line.width = 3; - style.text.color = LV_COLOR_WHITE; - style.line.color = LV_COLOR_RED; /*Line color after the critical value*/ + + // ##joaquimorg to FIX + //lv_style_copy(&style, &lv_style_pretty_color); + //style.body.main_color = LV_COLOR_CYAN; /*Line color at the beginning*/ + //style.body.grad_color = LV_COLOR_RED; /*Line color at the end*/ + //style.body.padding.left = 10; /*Scale line length*/ + //style.body.padding.inner = 8 ; /*Scale label padding*/ + //style.body.border.color = lv_color_hex3(0x333); /*Needle middle circle color*/ + //style.line.width = 3; + //style.text.color = LV_COLOR_WHITE; + //style.line.color = LV_COLOR_RED; /*Line color after the critical value*/ /*Describe the color for the needles*/ @@ -25,7 +25,10 @@ Gauge::Gauge(Pinetime::Applications::DisplayApp *app) : Screen(app) { /*Create a gauge*/ gauge1 = lv_gauge_create(lv_scr_act(), nullptr); - lv_gauge_set_style(gauge1, LV_GAUGE_STYLE_MAIN, &style); + + // ##joaquimorg to FIX + //lv_gauge_set_style(gauge1, LV_GAUGE_STYLE_MAIN, &style); + lv_gauge_set_needle_count(gauge1, 1, needle_colors); lv_obj_set_size(gauge1, 180, 180); lv_obj_align(gauge1, nullptr, LV_ALIGN_CENTER, 0, 0); |
