How to change check box indicator size both in press and release state

Description

I use demo “lv_example_checkbox_1” to test change indicator size of the check box, what I use is the function " lv_obj_set_style_transform_height" , and different selctor value also used.
When I use “LV_PART_INDICATOR | LV_STATE_DEFAULT” or “LV_PART_INDICATOR”, the indicator is the height I set when release, but become default height when pressed.
When I use “LV_PART_INDICATOR | LV_STATE_PRESSED | LV_STATE_DEFAULT” or “LV_PART_INDICATOR | LV_STATE_PRESSED”, the indicator is the height I set when pressed, but become default height when release.
My question is, how to keep the height I set both in press and release state.

What MCU/Processor/Board and compiler are you using?

qt simulator

What LVGL version are you using?

v8.4

What do you want to achieve?

To keep the height of indicator I set both in press and release state

What have you tried so far?

I tried different selctor value.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

static void event_handler(lv_event_t * e)

{

lv_event_code_t code = lv_event_get_code(e);

lv_obj_t * obj = lv_event_get_target(e);

if(code == LV_EVENT_VALUE_CHANGED) {

    const char * txt = lv_checkbox_get_text(obj);

    const char * state = lv_obj_get_state(obj) & LV_STATE_CHECKED ? "Checked" : "Unchecked";

    LV_LOG_USER("%s: %s", txt, state);

}

}

void lv_example_checkbox_1(void)

{

lv_obj_set_flex_flow(lv_scr_act(), LV_FLEX_FLOW_COLUMN);

lv_obj_set_flex_align(lv_scr_act(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER);

lv_obj_t * cb;

cb = lv_checkbox_create(lv_scr_act());

lv_checkbox_set_text(cb, "Apple");

 /** my test code here*/

lv_obj_set_size(cb, 200, 50);

lv_obj_set_style_transform_height(cb, 50, LV_PART_INDICATOR | LV_STATE_PRESSED | LV_STATE_DEFAULT);

/** end of my test code */

lv_obj_add_event_cb(cb, event_handler, LV_EVENT_ALL, NULL);

cb = lv_checkbox_create(lv_scr_act());

lv_checkbox_set_text(cb, "Banana");

lv_obj_add_state(cb, LV_STATE_CHECKED);

lv_obj_add_event_cb(cb, event_handler, LV_EVENT_ALL, NULL);

cb = lv_checkbox_create(lv_scr_act());

lv_checkbox_set_text(cb, "Lemon");

lv_obj_add_state(cb, LV_STATE_DISABLED);

lv_obj_add_event_cb(cb, event_handler, LV_EVENT_ALL, NULL);

cb = lv_checkbox_create(lv_scr_act());

lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED);

lv_checkbox_set_text(cb, "Melon\nand a new line");

lv_obj_add_event_cb(cb, event_handler, LV_EVENT_ALL, NULL);

lv_obj_update_layout(cb);

}

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.
image