11-29-2020 09:52
11-29-2020 09:52
Hi, I'm making a clockface for Fitbit Versa with SDK version 4.2 and running into an issue with setting opacity for a line.
I have two lines - one with opacity .3 and one with opacity 1. The opacity differences between these lines is visible in the emulator:
But there is no opacity when I install the clockface on my device (Fitbit Versa):
Please help, how do I fix this?
Here's the code:
index.gui:
<line x1="250" y1="125" x2="275" y2="150" stroke-width="6" stroke-linecap="round" id="testPoint1" fill="#3A86FF"></line>
<line x1="275" y1="150" x2="300" y2="175" stroke-width="6" stroke-linecap="round" id="testPoint2" fill="#3A86FF"></line>style.css:
#testPoint1 {
opacity: 1;
}
#testPoint2 {
opacity: .3;
}Answered! Go to the Best Answer.
12-08-2020 06:02
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
12-08-2020 06:02
Unfortunately this is a bug. it's fixed in the 4.2.1 firmware update which will be in the new year.
Best Answer12-08-2020 06:02
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
12-08-2020 06:02
Unfortunately this is a bug. it's fixed in the 4.2.1 firmware update which will be in the new year.
Best Answer12-08-2020 07:11
12-08-2020 07:11
Thank you for the update Jon! Any idea if that firmware will be rolled out to Fitbit Versa?
Best Answer12-08-2020 07:22
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
12-08-2020 07:22
Yes, 4.2.1 is for Ionic, Versa, Versa Lite, and Versa 2.
Best Answer12-08-2020 07:56
12-08-2020 07:56
Great - thanks again!
Best Answer01-23-2021 10:37
01-23-2021 10:37
Thrilled to see this fixed - thanks Fitbit team!
Best Answer02-06-2022 10:31
02-06-2022 10:31
Jon,
I noticed that stroke-opacity is not recognized, while fill-opacity is. Can we expect stroke-opacity to be implemented?
Thanks...
Best Answer