mirror of
https://github.com/CTCaer/hekate
synced 2024-09-07 08:39:00 +00:00
Small fix to make sure icon_path is long enough.
This commit is contained in:
parent
0ce973966f
commit
afb820202d
|
@ -1586,7 +1586,7 @@ ini_parsing:
|
||||||
{
|
{
|
||||||
img = lv_img_create(launch_ctxt[curr_btn_idx], NULL);
|
img = lv_img_create(launch_ctxt[curr_btn_idx], NULL);
|
||||||
|
|
||||||
if (icon_path && !memcmp(icon_path + strlen(icon_path) - 13, "_colorize", 9)) {
|
if (icon_path && strlen(icon_path) > 13 && !memcmp(icon_path + strlen(icon_path) - 13, "_colorize", 9)) {
|
||||||
static lv_style_t style;
|
static lv_style_t style;
|
||||||
lv_style_copy(&style, &lv_style_plain);
|
lv_style_copy(&style, &lv_style_plain);
|
||||||
style.image.color = lv_color_hsv_to_rgb(n_cfg.themecolor, 100, 100);
|
style.image.color = lv_color_hsv_to_rgb(n_cfg.themecolor, 100, 100);
|
||||||
|
|
Loading…
Reference in a new issue