Skip to content

Commit

Permalink
[FIXED JENKINS-3969] Replaced all gif images with corresponding png i…
Browse files Browse the repository at this point in the history
…mages.
  • Loading branch information
uhafner committed May 11, 2011
1 parent d869df0 commit a4ba7bd
Show file tree
Hide file tree
Showing 103 changed files with 218 additions and 218 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -1700,7 +1700,7 @@ public DirectoryBrowserSupport doWs( StaplerRequest req, StaplerResponse rsp ) t
req.getView(this,"noWorkspace.jelly").forward(req,rsp);
return null;
} else {
return new DirectoryBrowserSupport(this, ws, getDisplayName()+" workspace", "folder.gif", true);
return new DirectoryBrowserSupport(this, ws, getDisplayName()+" workspace", "folder.png", true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/BallColor.java
Expand Up @@ -81,7 +81,7 @@ public enum BallColor implements StatusIcon {
}

/**
* String like "red.gif" that represents the file name of the image.
* String like "red.png" that represents the file name of the image.
*/
public String getImage() {
return image;
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/DirectoryBrowserSupport.java
Expand Up @@ -376,9 +376,9 @@ public String getTitle() {

public String getIconName() {
if (isReadable)
return isFolder?"folder.gif":"text.gif";
return isFolder?"folder.png":"text.png";
else
return isFolder?"folder-error.gif":"text-error.gif";
return isFolder?"folder-error.png":"text-error.png";
}

public long getSize() {
Expand Down
12 changes: 6 additions & 6 deletions core/src/main/java/hudson/model/HealthReport.java
Expand Up @@ -46,12 +46,12 @@
// this is always exported as a part of Job and never on its own, so start with 2.
public class HealthReport implements Serializable, Comparable<HealthReport> {
// These are now 0-20, 21-40, 41-60, 61-80, 81+ but filenames unchanged for compatibility
private static final String HEALTH_OVER_80 = "health-80plus.gif";
private static final String HEALTH_61_TO_80 = "health-60to79.gif";
private static final String HEALTH_41_TO_60 = "health-40to59.gif";
private static final String HEALTH_21_TO_40 = "health-20to39.gif";
private static final String HEALTH_0_TO_20 = "health-00to19.gif";
private static final String HEALTH_UNKNOWN = "empty.gif";
private static final String HEALTH_OVER_80 = "health-80plus.png";
private static final String HEALTH_61_TO_80 = "health-60to79.png";
private static final String HEALTH_41_TO_60 = "health-40to59.png";
private static final String HEALTH_21_TO_40 = "health-20to39.png";
private static final String HEALTH_0_TO_20 = "health-00to19.png";
private static final String HEALTH_UNKNOWN = "empty.png";

/**
* The percentage health score (from 0 to 100 inclusive).
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Hudson.java
Expand Up @@ -3046,7 +3046,7 @@ protected void main(Channel channel) throws IOException, InterruptedException {
* Binds /userContent/... to $JENKINS_HOME/userContent.
*/
public DirectoryBrowserSupport doUserContent() {
return new DirectoryBrowserSupport(this,getRootPath().child("userContent"),"User content","folder.gif",true);
return new DirectoryBrowserSupport(this,getRootPath().child("userContent"),"User content","folder.png",true);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/MyViewsProperty.java
Expand Up @@ -204,7 +204,7 @@ public String getDisplayName() {
}

public String getIconFileName() {
return "user.gif";
return "user.png";
}

public String getUrlName() {
Expand Down Expand Up @@ -263,7 +263,7 @@ public String getIconFileName() {
return null;
}

return "user.gif";
return "user.png";
}

public String getUrlName() {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/ParametersAction.java
Expand Up @@ -124,7 +124,7 @@ public String getDisplayName() {
}

public String getIconFileName() {
return "document-properties.gif";
return "document-properties.png";
}

public String getUrlName() {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Run.java
Expand Up @@ -1637,7 +1637,7 @@ public DirectoryBrowserSupport doArtifact() {
if(Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this,new FilePath(getArtifactsDir()), project.getDisplayName()+' '+getDisplayName(), "package.gif", true);
return new DirectoryBrowserSupport(this,new FilePath(getArtifactsDir()), project.getDisplayName()+' '+getDisplayName(), "package.png", true);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/labels/LabelAtom.java
Expand Up @@ -105,7 +105,7 @@ protected void updateTransientActions() {
ta.add(new Action() {
public String getIconFileName() {
if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER))
return "setting.gif";
return "setting.png";
else
return null;
}
Expand Down
Expand Up @@ -296,11 +296,11 @@ public FormValidation doCheckName_(String value, AccessControlled subject, Permi

if(v.equals("authenticated"))
// system reserved group
return FormValidation.respond(Kind.OK, makeImg("user.gif") +ev);
return FormValidation.respond(Kind.OK, makeImg("user.png") +ev);

try {
sr.loadUserByUsername(v);
return FormValidation.respond(Kind.OK, makeImg("person.gif")+ev);
return FormValidation.respond(Kind.OK, makeImg("person.png")+ev);
} catch (UserMayOrMayNotExistException e) {
// undecidable, meaning the user may exist
return FormValidation.respond(Kind.OK, ev);
Expand All @@ -312,7 +312,7 @@ public FormValidation doCheckName_(String value, AccessControlled subject, Permi

try {
sr.loadGroupByGroupname(v);
return FormValidation.respond(Kind.OK, makeImg("user.gif") +ev);
return FormValidation.respond(Kind.OK, makeImg("user.png") +ev);
} catch (UserMayOrMayNotExistException e) {
// undecidable, meaning the group may exist
return FormValidation.respond(Kind.OK, ev);
Expand All @@ -323,7 +323,7 @@ public FormValidation doCheckName_(String value, AccessControlled subject, Permi
}

// couldn't find it. it doesn't exist
return FormValidation.respond(Kind.ERROR, makeImg("error.gif") +ev);
return FormValidation.respond(Kind.ERROR, makeImg("error.png") +ev);
}

private String makeImg(String gif) {
Expand Down
Expand Up @@ -517,7 +517,7 @@ public UserProperty newInstance(User user) {
public static final class ManageUserLinks extends ManagementLink {
public String getIconFileName() {
if(Hudson.getInstance().getSecurityRealm() instanceof HudsonPrivateSecurityRealm)
return "user.gif";
return "user.png";
else
return null; // not applicable now
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/tasks/Fingerprinter.java
Expand Up @@ -263,7 +263,7 @@ record = PackedMap.of(r);
}

public String getIconFileName() {
return "fingerprint.gif";
return "fingerprint.png";
}

public String getDisplayName() {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/tasks/JavadocArchiver.java
Expand Up @@ -143,7 +143,7 @@ public String getDisplayName() {
public String getIconFileName() {
File dir = dir();
if(dir != null && dir.exists())
return "help.gif";
return "help.png";
else
// hide it since we don't have javadoc yet.
return null;
Expand All @@ -153,7 +153,7 @@ public String getIconFileName() {
* Serves javadoc.
*/
public void doDynamic(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
new DirectoryBrowserSupport(this, new FilePath(dir()), getTitle(), "help.gif", false).generateResponse(req,rsp,this);
new DirectoryBrowserSupport(this, new FilePath(dir()), getTitle(), "help.png", false).generateResponse(req,rsp,this);
}

protected abstract String getTitle();
Expand Down
Expand Up @@ -115,7 +115,7 @@ public String getUrlName() {
}

public String getIconFileName() {
return "clipboard.gif";
return "clipboard.png";
}

public HealthReport getBuildHealth() {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/triggers/SCMTrigger.java
Expand Up @@ -285,7 +285,7 @@ public File getPollingLogFile() {
}

public String getIconFileName() {
return "clipboard.gif";
return "clipboard.png";
}

public String getDisplayName() {
Expand Down Expand Up @@ -329,7 +329,7 @@ public AbstractProject<?,?> getOwner() {
}

public String getIconFileName() {
return "clipboard.gif";
return "clipboard.png";
}

public String getDisplayName() {
Expand Down
Expand Up @@ -82,7 +82,7 @@ THE SOFTWARE.
<td class="center pane" id='unpin-${p.shortName}'>
<j:if test="${p.isPinned()}">
<input type="button" onclick="unpin(this,'${p.shortName}')" value="${%Unpin}" class="yui-button" />
<a href="${%wiki.url}"><img style="vertical-align:top" src="${imagesURL}/16x16/help.gif"/></a>
<a href="${%wiki.url}"><img style="vertical-align:top" src="${imagesURL}/16x16/help.png"/></a>
</j:if>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/resources/hudson/PluginManager/sidepanel.jelly
Expand Up @@ -30,10 +30,10 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.gif" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/setting.gif" href="${rootURL}/manage" title="${%Manage Jenkins}" permission="${app.ADMINISTER}" it="${app}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/setting.png" href="${rootURL}/manage" title="${%Manage Jenkins}" permission="${app.ADMINISTER}" it="${app}" />
<j:if test="${!empty(app.updateCenter.jobs)}">
<l:task icon="images/32x32/plugin.gif" href="${rootURL}/updateCenter/" title="${%Update Center}" />
<l:task icon="images/32x32/plugin.png" href="${rootURL}/updateCenter/" title="${%Update Center}" />
</j:if>
</l:tasks>
</l:side-panel>
Expand Down
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
<l:layout title="${%JENKINS_HOME is almost full}">
<l:main-panel>
<h1>
<img src="${imagesURL}/48x48/warning.gif" height="48" width="48" />
<img src="${imagesURL}/48x48/warning.png" height="48" width="48" />
${%blurb}
</h1>

Expand Down
Expand Up @@ -29,7 +29,7 @@ THE SOFTWARE.
<!-- TODO: st:include page="sidepanel.jelly" /-->
<l:main-panel>
<h1>
<img src="${imagesURL}/48x48/monitor.gif" alt="" height="48" width="48"/>
<img src="${imagesURL}/48x48/monitor.png" alt="" height="48" width="48"/>
${%JVM Memory Usage}
</h1>
<j:set var="type" value="${request.getParameter('type') ?: 'min'}" />
Expand Down
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.
<j:choose>
<j:when test="${!it.installed}">
<h1>
<img src="${imagesURL}/48x48/installer.gif" alt="" height="48" width="48"/>
<img src="${imagesURL}/48x48/installer.png" alt="" height="48" width="48"/>
${%Install as Windows Service}
</h1>

Expand All @@ -51,7 +51,7 @@ THE SOFTWARE.
<!-- already installed -->
<j:otherwise>
<h1>
<img src="${imagesURL}/48x48/blue.gif" alt="" height="48" width="48"/>
<img src="${imagesURL}/48x48/blue.png" alt="" height="48" width="48"/>
${%Installation Complete}
</h1>

Expand Down
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.
<l:layout title="Log" permission="${app.ADMINISTER}">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1><img src="${rootURL}/images/48x48/clipboard.gif" alt="" height="48" width="48"/>${it.displayName}</h1>
<h1><img src="${rootURL}/images/48x48/clipboard.png" alt="" height="48" width="48"/>${it.displayName}</h1>
<j:forEach var="log" items="${it.logRecords}">
<pre>${h.printLogRecord(log)}</pre>
</j:forEach>
Expand Down
Expand Up @@ -30,10 +30,10 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.gif" href=".." title="${%Back to Loggers}" />
<l:task icon="images/24x24/notepad.gif" href="." title="${%Log records}" />
<l:task icon="images/24x24/setting.gif" href="configure" title="${%Configure}" />
<l:task icon="images/24x24/edit-delete.gif" href="delete" title="${%Delete}" />
<l:task icon="images/24x24/up.png" href=".." title="${%Back to Loggers}" />
<l:task icon="images/24x24/notepad.png" href="." title="${%Log records}" />
<l:task icon="images/24x24/setting.png" href="configure" title="${%Configure}" />
<l:task icon="images/24x24/edit-delete.png" href="delete" title="${%Delete}" />
</l:tasks>
</l:side-panel>
</j:jelly>
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.
<l:layout title="Log">
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1><img src="${rootURL}/images/48x48/clipboard.gif" alt="" height="48" width="48"/>${%Jenkins Log}</h1>
<h1><img src="${rootURL}/images/48x48/clipboard.png" alt="" height="48" width="48"/>${%Jenkins Log}</h1>
<j:forEach var="log" items="${h.logRecords}">
<pre>${h.printLogRecord(log)}</pre>
</j:forEach>
Expand Down
Expand Up @@ -30,7 +30,7 @@ THE SOFTWARE.
<l:layout title="${%Log}">
<st:include page="sidepanel.jelly" />
<l:main-panel xmlns:local="local">
<h1><img src="${imagesURL}/48x48/clipboard.gif" alt="" height="48" width="48"/>
<h1><img src="${imagesURL}/48x48/clipboard.png" alt="" height="48" width="48"/>
${%Log Recorders}
<t:help href="http://wiki.jenkins-ci.org/display/JENKINS/Log+Recorders" />
</h1>
Expand All @@ -39,7 +39,7 @@ THE SOFTWARE.
<d:tag name="row">
<tr>
<td width="32">
<img src="${imagesURL}/32x32/clipboard.gif" width="32" height="32" alt=""/>
<img src="${imagesURL}/32x32/clipboard.png" width="32" height="32" alt=""/>
</td>
<td style="padding-left:2em"><a href="${href}">${name}</a></td>
<td width="32">
Expand All @@ -59,7 +59,7 @@ THE SOFTWARE.
<j:forEach var="lr" items="${it.logRecorders.values()}">
<local:row name="${lr.name}" href="${lr.name}/">
<a href="${lr.name}/configure">
<img src="${imagesURL}/32x32/setting.gif" width="32" height="32" alt="[configure]" title="Configure"/>
<img src="${imagesURL}/32x32/setting.png" width="32" height="32" alt="[configure]" title="Configure"/>
</a>
</local:row>
</j:forEach>
Expand Down
Expand Up @@ -30,12 +30,12 @@ THE SOFTWARE.
<l:header />
<l:side-panel>
<l:tasks>
<l:task icon="images/24x24/up.gif" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/setting.gif" href="${rootURL}/manage" title="${%Manage Jenkins}" />
<l:task icon="images/24x24/clipboard.gif" href="." title="${%Logger List}" />
<l:task icon="images/24x24/notepad.gif" href="all" title="${%All Logs}" />
<l:task icon="images/24x24/new-package.gif" href="new" title="${%New Log Recorder}" />
<l:task icon="images/24x24/gear.gif" href="levels" title="${%Log Levels}" />
<l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Dashboard}" />
<l:task icon="images/24x24/setting.png" href="${rootURL}/manage" title="${%Manage Jenkins}" />
<l:task icon="images/24x24/clipboard.png" href="." title="${%Logger List}" />
<l:task icon="images/24x24/notepad.png" href="all" title="${%All Logs}" />
<l:task icon="images/24x24/new-package.png" href="new" title="${%New Log Recorder}" />
<l:task icon="images/24x24/gear.png" href="levels" title="${%Log Levels}" />
</l:tasks>
</l:side-panel>
</j:jelly>
Expand Up @@ -32,7 +32,7 @@ THE SOFTWARE.
<j:set var="b" value="${p.run}" />
<j:choose>
<j:when test="${b==null}">
<img src="${imagesURL}/24x24/grey.gif" tooltip="${%Not run}" alt="${%Not run}" height="24" width="24"/>
<img src="${imagesURL}/24x24/grey.png" tooltip="${%Not run}" alt="${%Not run}" height="24" width="24"/>
</j:when>
<j:otherwise>
<a href="${p.shortUrl}/">
Expand Down
Expand Up @@ -31,7 +31,7 @@ THE SOFTWARE.
<p:matrix autoRefresh="true">
<j:choose>
<j:when test="${p==null}">
<img src="${imagesURL}/24x24/grey.gif" tooltip="${%Not configured}" alt="${%Not configured}" height="24" width="24"/>
<img src="${imagesURL}/24x24/grey.png" tooltip="${%Not configured}" alt="${%Not configured}" height="24" width="24"/>
</j:when>
<j:otherwise>
<a href="${p.shortUrl}">
Expand Down
Expand Up @@ -61,7 +61,7 @@ THE SOFTWARE.
permission="${it.ARTIFACTS}" />

<j:set var="set" value="${it.changeSet}" />
<t:summary icon="notepad.gif">
<t:summary icon="notepad.png">
<j:choose>
<j:when test="${it.hasChangeSetComputed()}">
<st:include it="${set}" page="digest.jelly" />
Expand Down
Expand Up @@ -34,10 +34,10 @@ THE SOFTWARE.
<st:include page="tasks.jelly"/>
<st:include page="actions.jelly" />
<j:if test="${it.previousBuild!=null}">
<l:task icon="images/24x24/previous.gif" href="${buildUrl.previousBuildUrl}" title="${%Previous Build}" />
<l:task icon="images/24x24/previous.png" href="${buildUrl.previousBuildUrl}" title="${%Previous Build}" />
</j:if>
<j:if test="${it.nextBuild!=null}">
<l:task icon="images/24x24/next.gif" href="${buildUrl.nextBuildUrl}" title="${%Next Build}" />
<l:task icon="images/24x24/next.png" href="${buildUrl.nextBuildUrl}" title="${%Next Build}" />
</j:if>
</l:tasks>
</l:side-panel>
Expand Down

0 comments on commit a4ba7bd

Please sign in to comment.