LittleVgl: Small cleanup

This commit is contained in:
Riku Isokoski 2023-01-24 01:17:32 +02:00
parent 8e8215d360
commit 4b2a61ea4a
2 changed files with 6 additions and 10 deletions

View File

@ -3,13 +3,17 @@
#include <FreeRTOS.h>
#include <task.h>
//#include <projdefs.h>
#include "drivers/Cst816s.h"
#include "drivers/St7789.h"
using namespace Pinetime::Components;
lv_style_t* LabelBigStyle = nullptr;
namespace {
void InitTheme() {
lv_theme_t* theme = lv_pinetime_theme_init();
lv_theme_set_act(theme);
}
}
static void disp_flush(lv_disp_drv_t* disp_drv, const lv_area_t* area, lv_color_t* color_p) {
auto* lvgl = static_cast<LittleVgl*>(disp_drv->user_data);
@ -192,10 +196,3 @@ bool LittleVgl::GetTouchPadInfo(lv_indev_data_t* ptr) {
}
return false;
}
void LittleVgl::InitTheme() {
lv_theme_t* th = lv_pinetime_theme_init();
lv_theme_set_act(th);
}

View File

@ -37,7 +37,6 @@ namespace Pinetime {
private:
void InitDisplay();
void InitTouchpad();
void InitTheme();
Pinetime::Drivers::St7789& lcd;
Pinetime::Drivers::Cst816S& touchPanel;