Cannot combine gv(path)/gv(icon) in bp()

The title is a bit bad but I can’t write all there, apologize.

I’m trying to create a color pick based on a image (multiple) in /sdcard/kustom/klwp/.icons and so far I got to

$bp(dvibrant, (gv(iconsp)/gv(icons/icon1)))$ and it works but only if the image doesn’t have an extension, I tried:

$bp(dvibrant, (gv(iconsp)/gv(icons/icon1)).png)$ but didn’t work. Is there a way to do it? I’m using icons/iconX because I can configure the package name for other stuff so i need the icons/iconX to be the package name of the app (for notifications)

Hi there,

Try this code snippet:

$bp(dvibrant, "/kustom/klwp/icons/"+gv(_your_var_)+".png")$

NOTES

  • Enclose the file path with double quotes (").

I hope this would help.
Did you find the most helpful response to your issue?
Please kindly press the :check_box_with_check: Solution button to mark it as the solution.
This would help others with the similar issue.

:smiling_face::+1:

This topic was automatically closed 25 days after the last reply. New replies are no longer allowed.