Skip to content

Commit ddedc5f

Browse files
authored
fix: Fix icon registry and exchange PNGs with SVGs (#566)
1 parent 081ee22 commit ddedc5f

32 files changed

+2531
-12216
lines changed

src/images/bitbucket-branch.svg

Lines changed: 0 additions & 2570 deletions
This file was deleted.

src/images/bitbucket-logo.svg

Lines changed: 0 additions & 2419 deletions
This file was deleted.

src/images/bitbucket-repository-git.svg

Lines changed: 0 additions & 2267 deletions
This file was deleted.

src/images/bitbucket-repository.svg

Lines changed: 0 additions & 2245 deletions
This file was deleted.

src/images/bitbucket-scmnavigator.svg

Lines changed: 0 additions & 2674 deletions
This file was deleted.

src/images/make-inkscape.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMNavigator.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,12 @@ public String getDescription() {
587587

588588
@Override
589589
public String getIconFilePathPattern() {
590-
return "plugin/cloudbees-bitbucket-branch-source/images/:size/bitbucket-scmnavigator.png";
590+
return "plugin/cloudbees-bitbucket-branch-source/images/bitbucket-scmnavigator.svg";
591591
}
592592

593593
@Override
594594
public String getIconClassName() {
595-
return "icon-bitbucket-scmnavigator";
595+
return "icon-bitbucket-scm-navigator";
596596
}
597597

598598
@SuppressWarnings("unchecked")
@@ -682,87 +682,87 @@ protected SCMSourceCategory[] createCategories() {
682682
static {
683683
IconSet.icons.addIcon(
684684
new Icon("icon-bitbucket-scm-navigator icon-sm",
685-
"plugin/cloudbees-bitbucket-branch-source/images/16x16/bitbucket-scmnavigator.png",
685+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-scmnavigator.svg",
686686
Icon.ICON_SMALL_STYLE));
687687
IconSet.icons.addIcon(
688688
new Icon("icon-bitbucket-scm-navigator icon-md",
689-
"plugin/cloudbees-bitbucket-branch-source/images/24x24/bitbucket-scmnavigator.png",
689+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-scmnavigator.svg",
690690
Icon.ICON_MEDIUM_STYLE));
691691
IconSet.icons.addIcon(
692692
new Icon("icon-bitbucket-scm-navigator icon-lg",
693-
"plugin/cloudbees-bitbucket-branch-source/images/32x32/bitbucket-scmnavigator.png",
693+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-scmnavigator.svg",
694694
Icon.ICON_LARGE_STYLE));
695695
IconSet.icons.addIcon(
696696
new Icon("icon-bitbucket-scm-navigator icon-xlg",
697-
"plugin/cloudbees-bitbucket-branch-source/images/48x48/bitbucket-scmnavigator.png",
697+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-scmnavigator.svg",
698698
Icon.ICON_XLARGE_STYLE));
699699

700700
IconSet.icons.addIcon(
701701
new Icon("icon-bitbucket-logo icon-sm",
702-
"plugin/cloudbees-bitbucket-branch-source/images/16x16/bitbucket-logo.png",
702+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-logo.svg",
703703
Icon.ICON_SMALL_STYLE));
704704
IconSet.icons.addIcon(
705705
new Icon("icon-bitbucket-logo icon-md",
706-
"plugin/cloudbees-bitbucket-branch-source/images/24x24/bitbucket-logo.png",
706+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-logo.svg",
707707
Icon.ICON_MEDIUM_STYLE));
708708
IconSet.icons.addIcon(
709709
new Icon("icon-bitbucket-logo icon-lg",
710-
"plugin/cloudbees-bitbucket-branch-source/images/32x32/bitbucket-logo.png",
710+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-logo.svg",
711711
Icon.ICON_LARGE_STYLE));
712712
IconSet.icons.addIcon(
713713
new Icon("icon-bitbucket-logo icon-xlg",
714-
"plugin/cloudbees-bitbucket-branch-source/images/48x48/bitbucket-logo.png",
714+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-logo.svg",
715715
Icon.ICON_XLARGE_STYLE));
716716

717717
IconSet.icons.addIcon(
718718
new Icon("icon-bitbucket-repo icon-sm",
719-
"plugin/cloudbees-bitbucket-branch-source/images/16x16/bitbucket-repository.png",
719+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository.svg",
720720
Icon.ICON_SMALL_STYLE));
721721
IconSet.icons.addIcon(
722722
new Icon("icon-bitbucket-repo icon-md",
723-
"plugin/cloudbees-bitbucket-branch-source/images/24x24/bitbucket-repository.png",
723+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository.svg",
724724
Icon.ICON_MEDIUM_STYLE));
725725
IconSet.icons.addIcon(
726726
new Icon("icon-bitbucket-repo icon-lg",
727-
"plugin/cloudbees-bitbucket-branch-source/images/32x32/bitbucket-repository.png",
727+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository.svg",
728728
Icon.ICON_LARGE_STYLE));
729729
IconSet.icons.addIcon(
730730
new Icon("icon-bitbucket-repo icon-xlg",
731-
"plugin/cloudbees-bitbucket-branch-source/images/48x48/bitbucket-repository.png",
731+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository.svg",
732732
Icon.ICON_XLARGE_STYLE));
733733

734734
IconSet.icons.addIcon(
735735
new Icon("icon-bitbucket-repo-git icon-sm",
736-
"plugin/cloudbees-bitbucket-branch-source/images/16x16/bitbucket-repository-git.png",
736+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository-git.svg",
737737
Icon.ICON_SMALL_STYLE));
738738
IconSet.icons.addIcon(
739739
new Icon("icon-bitbucket-repo-git icon-md",
740-
"plugin/cloudbees-bitbucket-branch-source/images/24x24/bitbucket-repository-git.png",
740+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository-git.svg",
741741
Icon.ICON_MEDIUM_STYLE));
742742
IconSet.icons.addIcon(
743743
new Icon("icon-bitbucket-repo-git icon-lg",
744-
"plugin/cloudbees-bitbucket-branch-source/images/32x32/bitbucket-repository-git.png",
744+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository-git.svg",
745745
Icon.ICON_LARGE_STYLE));
746746
IconSet.icons.addIcon(
747747
new Icon("icon-bitbucket-repo-git icon-xlg",
748-
"plugin/cloudbees-bitbucket-branch-source/images/48x48/bitbucket-repository-git.png",
748+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-repository-git.svg",
749749
Icon.ICON_XLARGE_STYLE));
750750

751751
IconSet.icons.addIcon(
752752
new Icon("icon-bitbucket-branch icon-sm",
753-
"plugin/cloudbees-bitbucket-branch-source/images/16x16/bitbucket-branch.png",
753+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-branch.svg",
754754
Icon.ICON_SMALL_STYLE));
755755
IconSet.icons.addIcon(
756756
new Icon("icon-bitbucket-branch icon-md",
757-
"plugin/cloudbees-bitbucket-branch-source/images/24x24/bitbucket-branch.png",
757+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-branch.svg",
758758
Icon.ICON_MEDIUM_STYLE));
759759
IconSet.icons.addIcon(
760760
new Icon("icon-bitbucket-branch icon-lg",
761-
"plugin/cloudbees-bitbucket-branch-source/images/32x32/bitbucket-branch.png",
761+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-branch.svg",
762762
Icon.ICON_LARGE_STYLE));
763763
IconSet.icons.addIcon(
764764
new Icon("icon-bitbucket-branch icon-xlg",
765-
"plugin/cloudbees-bitbucket-branch-source/images/48x48/bitbucket-branch.png",
765+
"plugin/cloudbees-bitbucket-branch-source/images/bitbucket-branch.svg",
766766
Icon.ICON_XLARGE_STYLE));
767767
}
768768
}
-711 Bytes
Binary file not shown.
-790 Bytes
Binary file not shown.
-990 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)