10-23-2018 12:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-23-2018 12:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am trying to create a clock face for my wife, and have pretty much everything that I need on it. I was able to get the background image to show up, but can't get the icons for steps, heart rate, etc to show. Does anyone have examples of the files that need to be edited (and how) in order for the icons to show up over the background image? Sorry if this is an obvious answer. I am completely new to all of this.

10-24-2018 11:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-24-2018 11:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Put the images into the resources folder. e.g /resources/image1.png
Then in your index.gui file you use the image:
<image href="image1.png" x="0" y="0" width="100" height="100" />
The order of elements in the index.gui matters, so if you want this image to appear above the background image, it must be added to the file after the background image. Like this:
<svg>
<image href="background.png" x="0" y="0" width="100%" height="100%" />
<image href="image1.png" x="0" y="0" width="100" height="100" />
</svg>
06-20-2021 09:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-20-2021 09:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am trying to add more than 1 icon but only the one that is coded first shows up. How do I fix this?
code:
<svg class="background">
<text id="timeLabel" />
<image href="heartRateIcon.png" x="75" y="100" width="30" height="30" />
<text id="heartRateLabel" />
<image href="batteryIcon.png" x="75" y="25" width="30" height="30" />
<text id="batteryLabel" />
</svg>

06-21-2021 06:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-21-2021 06:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
This looks fine. Did you put the image file in your resources folder? Is the image actually 30x30? The device won't resize big images due to lack of memory.
06-21-2021 17:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-21-2021 17:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks, resizing the image worked. But when I use a white image, it just makes it black.

06-21-2021 17:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-21-2021 17:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Image: https://imgur.com/a/TmHrm6g
Actual icon: https://imgur.com/a/bZg6Z9W

06-21-2021 17:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-21-2021 17:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Ensure you're using rgb (24-bit) images, rather than greyscale (8-bit).
Gondwana Software

06-21-2021 17:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-21-2021 17:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Ok, Thanks for the answer!
12-27-2021 20:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-27-2021 20:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
How is the background image done?

12-28-2021 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-28-2021 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Ineedhelp_ see - Solved: SVG background image
Author | ch, passion for improvement.

