Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Mallette_DMG_V14 Mallette_RB10G1_V33 Mallette_RB10G1_V40 Mallette_RB10G1_V41bis
Diff: lv_theme_rb.c
- Revision:
- 4:e58a004d9547
- Parent:
- 1:a539070ce4d2
--- a/lv_theme_rb.c Wed Jan 29 06:44:03 2020 +0000
+++ b/lv_theme_rb.c Thu Feb 27 23:17:29 2020 +0000
@@ -54,8 +54,9 @@
static void basic_init(void)
{
- /* lv_style_copy(&def, &lv_style_pretty); //Initialize the default style
-
+ lv_style_copy(&def, &lv_style_pretty); /*Initialize the default style*/
+ def.text.font = _font;
+
lv_style_copy(&scr, &def);
scr.body.padding.bottom = 0;
scr.body.padding.top = 0;
@@ -73,14 +74,13 @@
theme.style.bg = &lv_style_plain;
theme.style.scr = &scr;
- theme.style.panel = &lv_style_pretty;*/
+ theme.style.panel = &lv_style_pretty;
//GABOR: I copied the lv_theme_default.c and i tried to change someting. Here i copy the basic init of night theme, but nothing change on my screen. What's wrong?
- lv_style_copy(&def, &lv_style_pretty); /*Initialize the default style*/
- def.text.font = _font;
+
- lv_style_copy(&bg, &lv_style_plain);
+ /* lv_style_copy(&bg, &lv_style_plain);
bg.body.main_color = lv_color_hsv_to_rgb(_hue, 11, 30);
bg.body.grad_color = lv_color_hsv_to_rgb(_hue, 11, 30);
bg.text.color = lv_color_hsv_to_rgb(_hue, 5, 95);
@@ -121,7 +121,7 @@
theme.style.scr = &scr;
theme.style.bg = &bg;
- theme.style.panel = &def;
+ theme.style.panel = &def;*/
}
static void btn_init(void)