fix currencies widgets output
This commit is contained in:
@@ -96,10 +96,10 @@ end
|
|||||||
|
|
||||||
function get_formatted_change_text(change)
|
function get_formatted_change_text(change)
|
||||||
if change > 0 then
|
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
|
elseif change < 0 then
|
||||||
return "<font color=\""..red_color.."\"><small> "..change.."%</small></font>"
|
return "<font color=\""..red_color.."\"><small> "..change.."%</small></font>"
|
||||||
else
|
else
|
||||||
return "<font color=\""..text_color.."\"><small> "..change.."%</small></font>"
|
return "<font color=\""..text_color.."\"><small> "..change.."%</small></font>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -113,11 +113,11 @@ end
|
|||||||
function get_formatted_change_text(change)
|
function get_formatted_change_text(change)
|
||||||
local color = ui:get_colors()
|
local color = ui:get_colors()
|
||||||
if change > 0 then
|
if change > 0 then
|
||||||
return "<font color=\""..color.progress_good.."\"> +"..change.."%</font>"
|
return "<font color=\""..color.progress_good.."\"> +"..change.."%</font>"
|
||||||
elseif change < 0 then
|
elseif change < 0 then
|
||||||
return "<font color=\""..color.progress_bad.."\"> "..change.."%</font>"
|
return "<font color=\""..color.progress_bad.."\"> "..change.."%</font>"
|
||||||
else
|
else
|
||||||
return "<font color=\""..color.secondary_text.."\"> "..change.."%</font>"
|
return "<font color=\""..color.secondary_text.."\"> "..change.."%</font>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -397,4 +397,4 @@ currencies = [[
|
|||||||
<ISO_Char_Code>JPY</ISO_Char_Code>
|
<ISO_Char_Code>JPY</ISO_Char_Code>
|
||||||
</Item>
|
</Item>
|
||||||
</Valuta>
|
</Valuta>
|
||||||
]]
|
]]
|
||||||
|
|||||||
Reference in New Issue
Block a user