Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-6936] Use dedicated claim icon everywhere
* switch to modern icon management
- Loading branch information
Showing
9 changed files
with
62 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package hudson.plugins.claim; | ||
|
||
import hudson.Plugin; | ||
import org.jenkins.ui.icon.Icon; | ||
import org.jenkins.ui.icon.IconSet; | ||
|
||
public class ClaimPlugin extends Plugin { | ||
@Override | ||
public void start() throws Exception { | ||
super.start(); | ||
IconSet.icons.addIcon( | ||
new Icon("icon-claim-claim icon-sm", | ||
"plugin/claim/images/16x16/claim.png", | ||
Icon.ICON_SMALL_STYLE)); | ||
IconSet.icons.addIcon( | ||
new Icon("icon-claim-claim icon-md", | ||
"plugin/claim/images/24x24/claim.png", | ||
Icon.ICON_MEDIUM_STYLE)); | ||
IconSet.icons.addIcon( | ||
new Icon("icon-claim-claim icon-lg", | ||
"plugin/claim/images/32x32/claim.png", | ||
Icon.ICON_LARGE_STYLE)); | ||
IconSet.icons.addIcon( | ||
new Icon("icon-claim-claim icon-xlg", | ||
"plugin/claim/images/48x48/claim.png", | ||
Icon.ICON_XLARGE_STYLE)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
src/main/resources/hudson/plugins/claim/AbstractClaimBuildAction/badge.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes