summaryrefslogtreecommitdiff
path: root/src/displayapp/lv_pinetime_theme.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-03-07 08:44:14 +0100
committerJean-François Milants <jf@codingfield.com>2021-03-07 08:44:14 +0100
commit9f67e6f6525bd4071609ff9edd6ce132d7ca1464 (patch)
tree65b2dc22bb257c6dd4fc8be77762173b564c340c /src/displayapp/lv_pinetime_theme.h
parent740b3d7b58dd92a6a6f99620a090ae4f05c03299 (diff)
parentada942535718d48eec37cca4f50d678e7201dc67 (diff)
Merge branch 'develop' into recovery-firmware
# Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.h # src/systemtask/SystemTask.cpp # src/systemtask/SystemTask.h
Diffstat (limited to 'src/displayapp/lv_pinetime_theme.h')
-rw-r--r--src/displayapp/lv_pinetime_theme.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/displayapp/lv_pinetime_theme.h b/src/displayapp/lv_pinetime_theme.h
new file mode 100644
index 00000000..6697015e
--- /dev/null
+++ b/src/displayapp/lv_pinetime_theme.h
@@ -0,0 +1,62 @@
+/**
+ * @file lv_pinetime_theme.h
+ *
+ */
+
+#ifndef LV_PINETIME_THEME_H
+#define LV_PINETIME_THEME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*********************
+ * INCLUDES
+ *********************/
+#include <lvgl/lvgl.h>
+
+/*********************
+ * DEFINES
+ *********************/
+/*Colors*/
+#define LV_PINETIME_WHITE lv_color_hex(0xffffff)
+#define LV_PINETIME_LIGHT lv_color_hex(0xf3f8fe)
+#define LV_PINETIME_GRAY lv_color_hex(0x8a8a8a)
+#define LV_PINETIME_LIGHT_GRAY lv_color_hex(0xc4c4c4)
+#define LV_PINETIME_BLUE lv_color_hex(0x2f3243) //006fb6
+#define LV_PINETIME_GREEN lv_color_hex(0x4cb242)
+#define LV_PINETIME_RED lv_color_hex(0xd51732)
+
+/**********************
+ * TYPEDEFS
+ **********************/
+
+
+/**********************
+ * GLOBAL PROTOTYPES
+ **********************/
+
+
+/**
+ * Initialize the default
+ * @param color_primary the primary color of the theme
+ * @param color_secondary the secondary color for the theme
+ * @param flags ORed flags starting with `LV_THEME_DEF_FLAG_...`
+ * @param font_small pointer to a small font
+ * @param font_normal pointer to a normal font
+ * @param font_subtitle pointer to a large font
+ * @param font_title pointer to a extra large font
+ * @return a pointer to reference this theme later
+ */
+lv_theme_t * lv_pinetime_theme_init(lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags,
+ const lv_font_t * font_small, const lv_font_t * font_normal, const lv_font_t * font_subtitle,
+ const lv_font_t * font_title);
+/**********************
+ * MACROS
+ **********************/
+
+#endif
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif