1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

Merge pull request #409 from NicholeMattera/master

Added support to have launch icons match theme color.
This commit is contained in:
CTCaer 2020-05-03 01:16:59 +03:00 committed by GitHub
commit 54c36a7e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 0 deletions

View file

@ -1585,6 +1585,15 @@ ini_parsing:
if (bmp)
{
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);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB