Merge pull request #409 from NicholeMattera/master
Added support to have launch icons match theme color.
|
@ -1585,6 +1585,15 @@ ini_parsing:
|
||||||
if (bmp)
|
if (bmp)
|
||||||
{
|
{
|
||||||
img = lv_img_create(launch_ctxt[curr_btn_idx], NULL);
|
img = lv_img_create(launch_ctxt[curr_btn_idx], NULL);
|
||||||
|
|
||||||
|
if (icon_path && strlen(icon_path) > 13 && !memcmp(icon_path + strlen(icon_path) - 13, "_colorize", 9)) {
|
||||||
|
static lv_style_t style;
|
||||||
|
lv_style_copy(&style, &lv_style_plain);
|
||||||
|
style.image.color = lv_color_hsv_to_rgb(n_cfg.themecolor, 100, 100);
|
||||||
|
style.image.intense = LV_OPA_COVER;
|
||||||
|
lv_img_set_style(img, &style);
|
||||||
|
}
|
||||||
|
|
||||||
lv_img_set_src(img, bmp);
|
lv_img_set_src(img, bmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
BIN
nyx/resources/icon_lakka_colorize.bmp
Normal file
After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
BIN
nyx/resources/icon_payload_colorize.bmp
Normal file
After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
BIN
nyx/resources/icon_switch_colorize.bmp
Normal file
After Width: | Height: | Size: 144 KiB |