Skip to content
Permalink
Browse files

suggested solution for: JENKINS-19319 Distinguish between Aborted and…

  • Loading branch information
Julian Junghans Julian Junghans
Julian Junghans authored and Julian Junghans committed Aug 28, 2015
1 parent 48167d5 commit 5917f4ce03283c6bade372811bb80b2c46adc865
@@ -41,6 +41,7 @@ public ImageResolver() throws IOException{
new StatusImage("build-unstable-yellow.svg"),
new StatusImage("build-passing-brightgreen.svg"),
new StatusImage("build-running-blue.svg"),
new StatusImage("build-aborted-lightgrey.svg"),
new StatusImage("build-unknown-lightgrey.svg")
};
styles.put("plastic", plasticImages);
@@ -50,6 +51,7 @@ public ImageResolver() throws IOException{
new StatusImage("build-unstable-yellow-flat.svg"),
new StatusImage("build-passing-brightgreen-flat.svg"),
new StatusImage("build-running-blue-flat.svg"),
new StatusImage("build-aborted-lightgrey-flat.svg"),
new StatusImage("build-unknown-lightgrey-flat.svg")
};
styles.put("flat", flatImages);
@@ -72,14 +74,15 @@ public StatusImage getImage(BallColor color, String style) {

switch (color) {
case RED:
case ABORTED:
return images[0];
case YELLOW:
return images[1];
case BLUE:
return images[2];
case ABORTED:
return images[4];

This comment has been minimized.

Copy link
@demobox

demobox Aug 31, 2015

[minor] Indenting?

default:
return images[4];
return images[5];
}
}

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="98" height="20">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<rect rx="3" width="98" height="20" fill="#555"/>
<rect rx="3" x="37" width="61" height="20" fill="#9f9f9f"/>
<path fill="#9f9f9f" d="M37 0h4v20h-4z"/>
<rect rx="3" width="98" height="20" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="19.5" y="15" fill="#010101" fill-opacity=".3">build</text>
<text x="19.5" y="14">build</text>
<text x="66.5" y="15" fill="#010101" fill-opacity=".3">aborted</text>
<text x="66.5" y="14">aborted</text>
</g>
</svg>
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="98" height="18">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
<stop offset=".9" stop-opacity=".3"/>
<stop offset="1" stop-opacity=".5"/>
</linearGradient>
<rect rx="4" width="98" height="18" fill="#555"/>
<rect rx="4" x="37" width="61" height="18" fill="#9f9f9f"/>
<path fill="#9f9f9f" d="M37 0h4v18h-4z"/>
<rect rx="4" width="98" height="18" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text>
<text x="19.5" y="12">build</text>
<text x="66.5" y="13" fill="#010101" fill-opacity=".3">aborted</text>
<text x="66.5" y="12">aborted</text>
</g>
</svg>

0 comments on commit 5917f4c

Please sign in to comment.
You can’t perform that action at this time.