Skip to content

Commit e60482c

Browse files
committed
minor fixes
1 parent 545b97d commit e60482c

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

lv_objx/lv_list.c

+8-7
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ lv_obj_t * lv_list_get_btn_img(const lv_obj_t * btn)
391391
}
392392

393393
/**
394-
* Get the next button from list. (Starts from the bottom button)
394+
* Get the previous button from list. (Starts from the top button)
395395
* @param list pointer to a list object
396-
* @param prev_btn pointer to button. Search the next after it.
397-
* @return pointer to the next button or NULL when no more buttons
396+
* @param prev_btn pointer to button. Search the previous before it.
397+
* @return pointer to the previous button or NULL when no more buttons
398398
*/
399399
lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn)
400400
{
@@ -416,11 +416,12 @@ lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn)
416416
}
417417

418418

419-
/**
420-
* Get the previous button from list. (Starts from the top button)
419+
420+
/**
421+
* Get the next button from list. (Starts from the bottom button)
421422
* @param list pointer to a list object
422-
* @param prev_btn pointer to button. Search the previous before it.
423-
* @return pointer to the previous button or NULL when no more buttons
423+
* @param prev_btn pointer to button. Search the next after it.
424+
* @return pointer to the next button or NULL when no more buttons
424425
*/
425426
lv_obj_t * lv_list_get_next_btn(const lv_obj_t * list, lv_obj_t * prev_btn)
426427
{

lv_themes/lv_theme_alien.c

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
static uint16_t _hue;
3030
static lv_font_t * _font;
31-
static lv_font_t * _font;
32-
static lv_font_t * _font;
3331

3432
static lv_theme_t theme;
3533
static lv_style_t def;

lv_themes/lv_theme_mono.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ static lv_style_t light_frame;
3636
static lv_style_t dark_frame;
3737

3838
/*Saved input parameters*/
39-
static uint16_t _hue;
4039
static lv_font_t * _font;
4140

4241

@@ -421,15 +420,14 @@ static void win_init(void)
421420

422421
/**
423422
* Initialize the mono theme
424-
* @param hue [0..360] hue value from HSV color space to define the theme's base color
423+
* @param hue [0..360] hue value from HSV color space to define the theme's base color; is not used in lv_theme_mono
425424
* @param font pointer to a font (NULL to use the default)
426425
* @return pointer to the initialized theme
427426
*/
428427
lv_theme_t * lv_theme_mono_init(uint16_t hue, lv_font_t * font)
429428
{
430429
if(font == NULL) font = LV_FONT_DEFAULT;
431430

432-
_hue = hue;
433431
_font = font;
434432

435433
/*For backward compatibility initialize all theme elements with a default style */

0 commit comments

Comments
 (0)