mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
20 lines
578 B
C++
20 lines
578 B
C++
#pragma once
|
|
|
|
#include "lvgl.h"
|
|
class Themes
|
|
{
|
|
public:
|
|
enum Theme { eDark, eLight, eRed };
|
|
|
|
static void initStyles(void);
|
|
static enum Theme get(void);
|
|
static void set(enum Theme th);
|
|
static void recolorButton(lv_obj_t *obj, bool enabled, lv_opa_t opa = 255);
|
|
static void recolorImage(lv_obj_t *obj, bool enabled);
|
|
static void recolorText(lv_obj_t *obj, bool enabled);
|
|
static void recolorTopLabel(lv_obj_t *obj, bool alert);
|
|
static void recolorTableRow(lv_draw_fill_dsc_t *fill_draw_dsc, bool odd);
|
|
|
|
private:
|
|
Themes(void) = default;
|
|
}; |