The last change I'm making to the awesome Weather Time Bar is to add some static text that will display next to the current condition. However, I'm having a hard time getting the spacing to react dynamically so there's no large gaps or overlapping of text. I've replaced the location value with static text "Right now, it's". Then on the next line is the current condition, with static text "and", then the next line is the current temp. "and" is the text that needs to be spaced dynamically to the right of whatever the current condition is. I thought I had it working using Padding, but as soon as the skin updated from "Sunny" to "Fair", the spacing failed and resulted in a large gap. What is the best way to handle this scenario? Here's the code I've got so far:
paul1965 wrote: ↑March 10th, 2024, 9:18 pm
The last change I'm making to the awesome Weather Time Bar is to add some static text that will display next to the current condition. However, I'm having a hard time getting the spacing to react dynamically so there's no large gaps or overlapping of text. I've replaced the location value with static text "Right now, it's". Then on the next line is the current condition, with static text "and", then the next line is the current temp. "and" is the text that needs to be spaced dynamically to the right of whatever the current condition is. I thought I had it working using Padding, but as soon as the skin updated from "Sunny" to "Fair", the spacing failed and resulted in a large gap. What is the best way to handle this scenario? Here's the code I've got so far:
Thanks! That works great, it's simpler and much cleaner. But with that code, I can't set a separate font for the temp (to 25) like I have for the clock. However, this looks like it work, I'll just keep an eye on it as the conditions update through-out the day. Thanks again xenium, great work!