Index: icons/status-icons.rvt ================================================================== --- icons/status-icons.rvt +++ icons/status-icons.rvt @@ -21,11 +21,11 @@ set fd [open $file] set data [read $fd] close $fd - puts -nonewline [string map [list @@XPOS@@ $x @@YPOS@@ $y @@WIDTH@@ $width @@HEIGHT@@ $height] $data] + return [string map [list @@XPOS@@ $x @@YPOS@@ $y @@WIDTH@@ $width @@HEIGHT@@ $height] $data] } proc textColorFromBackground {color} { return "#fff" } @@ -79,28 +79,61 @@ headers add Last-Modified $timestamp headers add ETag $etag set q [format %c 63] puts -nonewline "<${q}xml version=\"1.0\"${q}>" + + if {![info exists args(no_action_icon)]} { + catch { + set actionIcon [icon action $args(action) 24] + } + } + if {[info exists actionIcon]} { + set actionAreaWidth 18 + } else { + set actionAreaWidth 45 + } + + if {![info exists args(no_status_icon)]} { + catch { + set statusIcon [icon status $args(status) [expr {20 + $actionAreaWidth}]] + } + } + if {[info exists statusIcon]} { + set statusAreaWidth 18 + } else { + set statusAreaWidth 55 + } + + set osAreaWidth 20 + + set totalWidth [expr {$osAreaWidth + $actionAreaWidth + $statusAreaWidth}] ?> - + - + - - + + - - - - + + + + - - + +