fix currencies widgets output

This commit is contained in:
Evgeny
2022-04-30 20:07:37 +03:00
parent 1b4cf9ecbc
commit afe93168b8
2 changed files with 7 additions and 7 deletions

View File

@@ -113,11 +113,11 @@ end
function get_formatted_change_text(change)
local color = ui:get_colors()
if change > 0 then
return "<font color=\""..color.progress_good.."\"> +"..change.."%</font>"
return "<font color=\""..color.progress_good.."\">&nbsp+"..change.."%</font>"
elseif change < 0 then
return "<font color=\""..color.progress_bad.."\"> "..change.."%</font>"
return "<font color=\""..color.progress_bad.."\">&nbsp"..change.."%</font>"
else
return "<font color=\""..color.secondary_text.."\"> "..change.."%</font>"
return "<font color=\""..color.secondary_text.."\">&nbsp"..change.."%</font>"
end
end
@@ -397,4 +397,4 @@ currencies = [[
<ISO_Char_Code>JPY</ISO_Char_Code>
</Item>
</Valuta>
]]
]]