mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 01:18:04 +08:00
modify display size limits
This commit is contained in:
+3
-3
@@ -65,9 +65,9 @@
|
|||||||
* The 4th is extra large which has no upper limit so not listed here
|
* The 4th is extra large which has no upper limit so not listed here
|
||||||
* The upper limit of the categories are set below in 0.1 inch unit.
|
* The upper limit of the categories are set below in 0.1 inch unit.
|
||||||
*/
|
*/
|
||||||
#define LV_DISP_SMALL_LIMIT 25
|
#define LV_DISP_SMALL_LIMIT 30
|
||||||
#define LV_DISP_MEDIUM_LIMIT 45
|
#define LV_DISP_MEDIUM_LIMIT 50
|
||||||
#define LV_DISP_LARGE_LIMIT 65
|
#define LV_DISP_LARGE_LIMIT 70
|
||||||
|
|
||||||
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
||||||
typedef int16_t lv_coord_t;
|
typedef int16_t lv_coord_t;
|
||||||
|
|||||||
@@ -97,13 +97,13 @@
|
|||||||
* The upper limit of the categories are set below in 0.1 inch unit.
|
* The upper limit of the categories are set below in 0.1 inch unit.
|
||||||
*/
|
*/
|
||||||
#ifndef LV_DISP_SMALL_LIMIT
|
#ifndef LV_DISP_SMALL_LIMIT
|
||||||
#define LV_DISP_SMALL_LIMIT 25
|
#define LV_DISP_SMALL_LIMIT 30
|
||||||
#endif
|
#endif
|
||||||
#ifndef LV_DISP_MEDIUM_LIMIT
|
#ifndef LV_DISP_MEDIUM_LIMIT
|
||||||
#define LV_DISP_MEDIUM_LIMIT 45
|
#define LV_DISP_MEDIUM_LIMIT 50
|
||||||
#endif
|
#endif
|
||||||
#ifndef LV_DISP_LARGE_LIMIT
|
#ifndef LV_DISP_LARGE_LIMIT
|
||||||
#define LV_DISP_LARGE_LIMIT 65
|
#define LV_DISP_LARGE_LIMIT 70
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ static inline void lv_scr_load(lv_obj_t * scr)
|
|||||||
* 1 dip is 2 px on a 320 DPI screen
|
* 1 dip is 2 px on a 320 DPI screen
|
||||||
* https://stackoverflow.com/questions/2025282/what-is-the-difference-between-px-dip-dp-and-sp
|
* https://stackoverflow.com/questions/2025282/what-is-the-difference-between-px-dip-dp-and-sp
|
||||||
*/
|
*/
|
||||||
#define LV_DPX(n) LV_MATH_MAX(((LV_DPI * (n)) / 160), 1)
|
#define LV_DPX(n) LV_MATH_MAX(((LV_DPI * (n) + 80) / 160), 1) /*+80 for rounding*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
#define COLOR_BG_SEC_TEXT_DIS (IS_LIGHT ? lv_color_hex(0xaaaaaa) : lv_color_hex(0xa5a8ad))
|
#define COLOR_BG_SEC_TEXT_DIS (IS_LIGHT ? lv_color_hex(0xaaaaaa) : lv_color_hex(0xa5a8ad))
|
||||||
|
|
||||||
#define TRANSITION_TIME 150
|
#define TRANSITION_TIME 150
|
||||||
#define BORDER_WIDTH LV_DPX(3)
|
#define BORDER_WIDTH LV_DPX(2)
|
||||||
#define IS_LIGHT (theme.flags & LV_THEME_MATERIAL_FLAG_LIGHT)
|
#define IS_LIGHT (theme.flags & LV_THEME_MATERIAL_FLAG_LIGHT)
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
Reference in New Issue
Block a user