mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Change status icon look
This commit is contained in:
parent
e061b2559c
commit
9524ef726a
@ -46,7 +46,7 @@ RED.view = function() {
|
|||||||
|
|
||||||
|
|
||||||
var status_colours = {
|
var status_colours = {
|
||||||
"red" : "#00c",
|
"red" : "#c00",
|
||||||
"green": "#5a8"
|
"green": "#5a8"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -898,14 +898,16 @@ RED.view = function() {
|
|||||||
|
|
||||||
var status = node.append("svg:g").attr("class","node_status_group").style("display","none");
|
var status = node.append("svg:g").attr("class","node_status_group").style("display","none");
|
||||||
|
|
||||||
var statusRect = status.append("circle").attr("class","node_status")
|
var statusRect = status.append("rect").attr("class","node_status")
|
||||||
.attr("cx",9).attr("cy",6).attr("r",5).attr("stroke-width","3");
|
.attr("x",6).attr("y",1).attr("width",9).attr("height",9)
|
||||||
|
.attr("rx",2).attr("ry",2).attr("stroke-width","3");
|
||||||
|
|
||||||
var statusLabel = status.append("svg:text")
|
var statusLabel = status.append("svg:text")
|
||||||
.attr("class","node_status_label")
|
.attr("class","node_status_label")
|
||||||
.attr('x',20).attr('y',10)
|
.attr('x',20).attr('y',9)
|
||||||
.style({
|
.style({
|
||||||
'stroke-width': 0,
|
'stroke-width': 0,
|
||||||
'fill': '#999',
|
'fill': '#888',
|
||||||
'font-size':'9pt',
|
'font-size':'9pt',
|
||||||
'stroke':'#000',
|
'stroke':'#000',
|
||||||
'text-anchor':'start'
|
'text-anchor':'start'
|
||||||
|
Loading…
Reference in New Issue
Block a user