/lvgl-latest/src/themes/default/ |
D | lv_theme_default.c | 27 #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/ |
D | lv_theme_mono.c | 86 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/ |
D | lv_theme_simple.c | 77 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/ |
D | lv_theme.c | 61 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()
|
D | lv_theme.h | 60 void lv_theme_set_apply_cb(lv_theme_t * theme, lv_theme_apply_cb_t apply_cb);
|
/lvgl-latest/scripts/gen_json/ |
D | requirements.txt | 7 sphinx-rtd-theme
|
/lvgl-latest/docs/ |
D | requirements.txt | 5 sphinx-rtd-theme
|
D | README.md | 20 * sphinx-rtd-theme
|
D | CHANGELOG.rst | 175 - **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/ |
D | style.rst | 518 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/ |
D | index.rst | 32 Modular style update on theme change
|
/lvgl-latest/demos/ebike/ |
D | lv_demo_ebike.c | 78 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/ |
D | lv_display_private.h | 148 lv_theme_t * theme; /**< The theme assigned to the screen*/ member
|
D | lv_display.c | 117 …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/ |
D | index.rst | 80 Extending the current theme
|
/lvgl-latest/docs/details/widgets/ |
D | calendar.rst | 42 …- today has a thicker border with the theme's primary color - highlighted days have some opacity w…
|
D | dropdown.rst | 61 Alternatively the theme can be extended with new styles.
|
/lvgl-latest/demos/smartwatch/ |
D | lv_demo_smartwatch.c | 92 …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/ |
D | README.md | 116 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/ |
D | connecting_lvgl.rst | 35 7. Optionally set a theme with :cpp:func:`lv_display_set_theme`.
|
/lvgl-latest/ |
D | Kconfig | 857 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/ |
D | basics.rst | 396 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/ |
D | zephyr.rst | 154 # Do not include every widget/theme by default, enable them as needed.
|
/lvgl-latest/docs/details/main-components/ |
D | fs.rst | 328 %%{init: {'theme':'neutral'}}%%
|