LittleVgl: Small cleanup
This commit is contained in:
parent
8e8215d360
commit
4b2a61ea4a
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@ namespace Pinetime {
|
|||
private:
|
||||
void InitDisplay();
|
||||
void InitTouchpad();
|
||||
void InitTheme();
|
||||
|
||||
Pinetime::Drivers::St7789& lcd;
|
||||
Pinetime::Drivers::Cst816S& touchPanel;
|
||||
|
|
Loading…
Reference in New Issue
Block a user