Merge pull request 'colourXepg' (#7) from MymsMan/webif:colourXepg into master

This commit is contained in:
af123 2020-06-03 10:39:29 +00:00
commit c416e5f39d

View File

@ -308,7 +308,14 @@ foreach e $records {
if {$showing} { append hxt " ($perc%)" }
set lbg $bg
if {[$e scheduled]} { set lbg "blueshade" }
# Set backround if scheduled. 1 1-off, 2 series, 3 recorded, 4 skipped
switch -- [$e scheduled] {
1 { set lbg "blueshade" }
2 { set lbg "blueshade" }
3 { set lbg "pinkshade" }
4 { set lbg "orangeshade" }
default {}
}
puts "<div class=\"xeprog $lbg\"
style=\"width: [expr $px - 4]px;\" title=\"$htxt\">