Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 24 of 24) sorted by relevance

/lvgl-latest/src/themes/default/
Dlv_theme_default.c27 #define RADIUS_DEFAULT LV_DPX_CALC(theme->disp_dpi, theme->disp_size == DISP_LARGE ? 12 : 8)
40 #define BORDER_WIDTH LV_DPX_CALC(theme->disp_dpi, 2)
41 #define OUTLINE_WIDTH LV_DPX_CALC(theme->disp_dpi, 3)
43 #define PAD_DEF LV_DPX_CALC(theme->disp_dpi, theme->disp_size == DISP_LARGE ? 24 : theme->disp_…
44 #define PAD_SMALL LV_DPX_CALC(theme->disp_dpi, theme->disp_size == DISP_LARGE ? 14 : theme->disp_…
45 #define PAD_TINY LV_DPX_CALC(theme->disp_dpi, theme->disp_size == DISP_LARGE ? 8 : theme->disp_s…
213 static void style_init(my_theme_t * theme) in style_init() argument
227 theme->color_scr = theme->base.flags & MODE_DARK ? DARK_COLOR_SCR : LIGHT_COLOR_SCR; in style_init()
228 theme->color_text = theme->base.flags & MODE_DARK ? DARK_COLOR_TEXT : LIGHT_COLOR_TEXT; in style_init()
229 theme->color_card = theme->base.flags & MODE_DARK ? DARK_COLOR_CARD : LIGHT_COLOR_CARD; in style_init()
[all …]
/lvgl-latest/src/themes/mono/
Dlv_theme_mono.c86 static void style_init(my_theme_t * theme, bool dark_bg, const lv_font_t * font) in style_init() argument
88 style_init_reset(&theme->styles.scrollbar); in style_init()
89 lv_style_set_bg_opa(&theme->styles.scrollbar, LV_OPA_COVER); in style_init()
90 lv_style_set_bg_color(&theme->styles.scrollbar, COLOR_FG); in style_init()
91 lv_style_set_width(&theme->styles.scrollbar, PAD_DEF); in style_init()
93 style_init_reset(&theme->styles.scr); in style_init()
94 lv_style_set_bg_opa(&theme->styles.scr, LV_OPA_COVER); in style_init()
95 lv_style_set_bg_color(&theme->styles.scr, COLOR_BG); in style_init()
96 lv_style_set_text_color(&theme->styles.scr, COLOR_FG); in style_init()
97 lv_style_set_pad_row(&theme->styles.scr, PAD_DEF); in style_init()
[all …]
/lvgl-latest/src/themes/simple/
Dlv_theme_simple.c77 static void style_init(my_theme_t * theme) in style_init() argument
79 style_init_reset(&theme->styles.scrollbar); in style_init()
80 lv_style_set_bg_opa(&theme->styles.scrollbar, LV_OPA_COVER); in style_init()
81 lv_style_set_bg_color(&theme->styles.scrollbar, COLOR_DARK); in style_init()
82 lv_style_set_width(&theme->styles.scrollbar, SCROLLBAR_WIDTH); in style_init()
84 style_init_reset(&theme->styles.scr); in style_init()
85 lv_style_set_bg_opa(&theme->styles.scr, LV_OPA_COVER); in style_init()
86 lv_style_set_bg_color(&theme->styles.scr, COLOR_SCR); in style_init()
87 lv_style_set_text_color(&theme->styles.scr, COLOR_DIM); in style_init()
89 style_init_reset(&theme->styles.transp); in style_init()
[all …]
/lvgl-latest/src/themes/
Dlv_theme.c61 void lv_theme_set_apply_cb(lv_theme_t * theme, lv_theme_apply_cb_t apply_cb) in lv_theme_set_apply_cb() argument
63 theme->apply_cb = apply_cb; in lv_theme_set_apply_cb()
Dlv_theme.h60 void lv_theme_set_apply_cb(lv_theme_t * theme, lv_theme_apply_cb_t apply_cb);
/lvgl-latest/scripts/gen_json/
Drequirements.txt7 sphinx-rtd-theme
/lvgl-latest/docs/
Drequirements.txt5 sphinx-rtd-theme
DREADME.md20 * sphinx-rtd-theme
DCHANGELOG.rst175 - **perf(theme): optimize the order of function calls** `5971 <https://github.com/lvgl/lvgl/pull/59…
223 - **fix(theme): make the text styles work on the INDICATOR's DEFAULT state** `6521 <https://github.…
257 - **fix(theme): set a default length for scale** `6359 <https://github.com/lvgl/lvgl/pull/6359>`__
/lvgl-latest/docs/details/base-widget/styles/
Dstyle.rst518 Themes are a collection of styles. If there is an active theme LVGL
522 Every display can have a different theme. For example, you could have a
523 colorful theme on a TFT and monochrome theme on a secondary monochrome
526 To set a theme for a display, two steps are required:
528 1. Initialize a theme
529 2. Assign the initialized theme to a display.
532 example shows how to set the "default" theme:
539 … false, /* Dark theme? False = light theme. */
544 lv_display_set_theme(display, th); /* Assign theme to display */
546 The included themes are enabled in ``lv_conf.h``. If the default theme
[all …]
/lvgl-latest/examples/others/observer/
Dindex.rst32 Modular style update on theme change
/lvgl-latest/demos/ebike/
Dlv_demo_ebike.c78 lv_theme_t * theme = lv_theme_simple_init(display); in lv_demo_ebike() local
79 lv_display_set_theme(display, theme); in lv_demo_ebike()
/lvgl-latest/src/display/
Dlv_display_private.h148 lv_theme_t * theme; /**< The theme assigned to the screen*/ member
Dlv_display.c117 …disp->theme = lv_theme_default_init(disp, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(LV_PAL… in lv_display_create()
121 disp->theme = lv_theme_default_get(); in lv_display_create()
125 disp->theme = lv_theme_simple_init(disp); in lv_display_create()
128 disp->theme = lv_theme_simple_get(); in lv_display_create()
885 disp->theme = th; in lv_display_set_theme()
898 return disp->theme; in lv_display_get_theme()
/lvgl-latest/examples/styles/
Dindex.rst80 Extending the current theme
/lvgl-latest/docs/details/widgets/
Dcalendar.rst42 …- today has a thicker border with the theme's primary color - highlighted days have some opacity w…
Ddropdown.rst61 Alternatively the theme can be extended with new styles.
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch.c92 …lv_theme_t * theme = lv_theme_default_init(display, lv_palette_main(LV_PALETTE_BLUE), lv_palette_m… in lv_demo_smartwatch() local
94 lv_display_set_theme(display, theme); in lv_demo_smartwatch()
/lvgl-latest/demos/
DREADME.md116 Shows how the widgets look like out of the box using the built-in material theme.
/lvgl-latest/docs/intro/add-lvgl-to-your-project/
Dconnecting_lvgl.rst35 7. Optionally set a theme with :cpp:func:`lv_display_set_theme`.
/lvgl-latest/
DKconfig857 prompt "Select theme default title font"
861 Select theme default title font
1178 bool "A simple, impressive and very complete theme"
1192 bool "A very simple theme that is a good starting point for a custom theme"
1195 bool "Monochrome theme, suitable for some E-paper & dot matrix displays"
/lvgl-latest/docs/intro/
Dbasics.rst396 Themes are the default styles for Widgets. Styles from a theme are
399 The theme for your application is a compile time configuration set in
/lvgl-latest/docs/details/integration/os/
Dzephyr.rst154 # Do not include every widget/theme by default, enable them as needed.
/lvgl-latest/docs/details/main-components/
Dfs.rst328 %%{init: {'theme':'neutral'}}%%