Make percentage visible in progressbar image

This commit is contained in:
df 2020-05-11 11:42:21 +00:00 committed by HummyPkg
parent dd3e4cb358
commit 18aee67607

View File

@ -3,8 +3,9 @@ if {![exists -proc progressbar]} {
proc progressbar {percent} { proc progressbar {percent} {
set pos [expr 118 - $percent / 100.0 * 118] set pos [expr 118 - $percent / 100.0 * 118]
return "<img src=/img/percentimage.png return "<img src=/img/percentimage.png
title=\"$percent%\" title=\"$percent%\"
alt=\"$percent%\" class=progress alt=\"$percent%\" class=progress
style=\"background-position: -${pos}px 0;\">" style=\"background-position: -${pos}px 0;\">"
} }
} }