fix currencies widgets output
This commit is contained in:
@@ -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> +"..change.."%</small></font>"
|
||||
elseif change < 0 then
|
||||
return "<font color=\""..red_color.."\"><small> "..change.."%</small></font>"
|
||||
return "<font color=\""..red_color.."\"><small> "..change.."%</small></font>"
|
||||
else
|
||||
return "<font color=\""..text_color.."\"><small> "..change.."%</small></font>"
|
||||
return "<font color=\""..text_color.."\"><small> "..change.."%</small></font>"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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.."\"> +"..change.."%</font>"
|
||||
elseif change < 0 then
|
||||
return "<font color=\""..color.progress_bad.."\"> "..change.."%</font>"
|
||||
return "<font color=\""..color.progress_bad.."\"> "..change.."%</font>"
|
||||
else
|
||||
return "<font color=\""..color.secondary_text.."\"> "..change.."%</font>"
|
||||
return "<font color=\""..color.secondary_text.."\"> "..change.."%</font>"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user