Changeset 65132 in vbox for trunk/src/VBox/ValidationKit/testmanager
- Timestamp:
- Jan 5, 2017 3:00:35 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112635
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphsimple.py
r62484 r65132 85 85 sValue = escapeElem(oRow.asValues[j]); 86 86 sColor = self.kasColors[j % len(self.kasColors)]; 87 sInvColor = 'white'; 88 if sColor[0] == '#' and len(sColor) == 7: 89 sInvColor = '#%06x' % (~int(sColor[1:],16) & 0xffffff,); 87 90 88 91 sReport += ' <tr><td>\n' \ … … 90 93 ' <tr>\n'; 91 94 if cPct >= 99: 92 sReport += ' <td width="%spx" nowrap bgcolor="%s" align="right">%s </td>\n' \ 93 % (cxBar, sColor, sValue); 95 sReport += ' <td width="%spx" nowrap bgcolor="%s" align="right" style="color:%s;">' \ 96 '%s </td>\n' \ 97 % (cxBar, sColor, sInvColor, sValue); 94 98 elif cPct < 1: 95 99 sReport += ' <td width="%spx" nowrap style="color:%s;">%s</td>\n' \ 96 100 % (self.cxMaxBar - cxBar, sColor, sValue); 97 101 elif cPct >= 50: 98 sReport += ' <td width="%spx" nowrap bgcolor="%s" align="right">%s </td>\n' \ 102 sReport += ' <td width="%spx" nowrap bgcolor="%s" align="right" style="color:%s;">' \ 103 '%s </td>\n' \ 99 104 ' <td width="%spx" nowrap><div> </div></td>\n' \ 100 % (cxBar, sColor, s Value, self.cxMaxBar - cxBar);105 % (cxBar, sColor, sInvColor, sValue, self.cxMaxBar - cxBar); 101 106 else: 102 107 sReport += ' <td width="%spx" nowrap bgcolor="%s"></td>\n' \
Note:
See TracChangeset
for help on using the changeset viewer.