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

@@ -96,10 +96,10 @@ end
function get_formatted_change_text(change)
if change > 0 then
return "<font color=\""..green_color.."\"><small> +"..change.."%</small></font>"
return "<font color=\""..green_color.."\"><small>&nbsp+"..change.."%</small></font>"
elseif change < 0 then
return "<font color=\""..red_color.."\"><small> "..change.."%</small></font>"
return "<font color=\""..red_color.."\"><small>&nbsp"..change.."%</small></font>"
else
return "<font color=\""..text_color.."\"><small> "..change.."%</small></font>"
return "<font color=\""..text_color.."\"><small>&nbsp"..change.."%</small></font>"
end
end

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