# Pause/play bitmap not showing

**URL:** <https://forum.kustom.rocks/t/pause-play-bitmap-not-showing/9854>\
**Category:** Issues\
**Tags:** kwgt, functions, help\
**Created:** [January 12, 2025, 4:16am UTC](https://forum.kustom.rocks/t/pause-play-bitmap-not-showing/9854 "2025-01-12T04:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookiemuncherrrrr](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/cookiemuncherrrrr/32/2959_2.png) [@cookiemuncherrrrr](https://forum.kustom.rocks/u/cookiemuncherrrrr)\
**Post date:** [January 12, 2025, 4:16am UTC](https://forum.kustom.rocks/t/pause-play-bitmap-not-showing/9854/1 "2025-01-12T04:16:12Z")

</div>

![Screenshot_2025-01-12-10-49-14-190_org.kustom.widget](https://forumcdn.kustom.rocks/original/2X/0/0fe122ab5c635feb7fee5ce24adbdb3b83dfe242.jpeg)

Pause/play bitmap don’t show up in the widget even though I believe I have put the correct path of the images.

Here is the formula I use: $if(mi(state)=PLAYING,file:/storage/emulated/0/Kustom/icons/Pause.png,file:/storage/emulated/0/Kustom/icons/Play.png)$

Device is Xiaomi 13T, HyperOS 2 (Android 15). KWGT version is 3.77b435216.

---

<div class="post-metadata">

**Author:** ![Baju\_Santiko](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/baju_santiko/32/6471_2.png) [@Baju\_Santiko](https://forum.kustom.rocks/u/Baju_Santiko)\
**Post date:** [January 12, 2025, 4:26am UTC](https://forum.kustom.rocks/t/pause-play-bitmap-not-showing/9854/2 "2025-01-12T04:26:15Z")

</div>

Hi there,

A tips on using an image as a button:

- Use a global variable of Image type, to store the bitmap data in the preset.
- Point the image path to that global variable using gv() function, instead of typing the URI of the image path.

By the way, from your code snippet,

`$if(mi(state)=PLAYING,file:/storage/emulated/0/Kustom/icons/Pause.png,file:/storage/emulated/0/Kustom/icons/Play.png)$`

I think you should write:

```auto
file:///storage/ …

```

Also, make sure the image file does exist in the folder you’re using, and you write the filename correctly.

I hope this would help.  
☺👍

---

<div class="post-metadata">

**Author:** ![cookiemuncherrrrr](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/cookiemuncherrrrr/32/2959_2.png) [@cookiemuncherrrrr](https://forum.kustom.rocks/u/cookiemuncherrrrr)\
**Post date:** [January 12, 2025, 5:15am UTC](https://forum.kustom.rocks/t/pause-play-bitmap-not-showing/9854/3 "2025-01-12T05:15:03Z")

</div>

I made the images global just as you suggested and it works. Haha. Thank you very much for the help.😁
