diff options
author | James Moger <james.moger@gitblit.com> | 2013-05-10 11:03:06 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-05-10 11:03:06 -0400 |
commit | 22ad1f4ce45615c888944b40f27916291f7ffad7 (patch) | |
tree | 2da7a4390f93f37de80e0dd302f5052e97d00d2d /src/main | |
parent | 4331906443e441be82c9225eea7c46b5c28c97f1 (diff) | |
download | gitblit-22ad1f4ce45615c888944b40f27916291f7ffad7.tar.gz gitblit-22ad1f4ce45615c888944b40f27916291f7ffad7.zip |
Use SparkleShare icon instead of star icon for app menu
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java | 16 | ||||
-rw-r--r-- | src/main/resources/sparkleshare_32x32.png | bin | 0 -> 1370 bytes |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java index 00c7cf7a..942f8d51 100644 --- a/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java @@ -173,10 +173,20 @@ public class RepositoryUrlPanel extends BasePanel { getAccessRestrictions().get(repository.accessRestriction)));
break;
default:
- urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ if (repositoryUrls.size() == 1) {
+ // force left end cap to have some width
+ urlPanel.add(WicketUtils.newBlankIcon("accessRestrictionIcon"));
+ } else {
+ urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ }
}
} else {
- urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ if (repositoryUrls.size() == 1) {
+ // force left end cap to have some width
+ urlPanel.add(WicketUtils.newBlankIcon("accessRestrictionIcon"));
+ } else {
+ urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
+ }
}
urlPanel.add(new Label("primaryUrl", primaryUrl.url).setRenderBodyOnly(true));
@@ -316,7 +326,7 @@ public class RepositoryUrlPanel extends BasePanel { app.cloneUrl = url;
app.platforms = new String [] { "windows", "macintosh", "linux" };
app.productUrl = "http://sparkleshare.org";
- app.icon = "star_32x32.png";
+ app.icon = "sparkleshare_32x32.png";
app.isActive = true;
return app;
}
diff --git a/src/main/resources/sparkleshare_32x32.png b/src/main/resources/sparkleshare_32x32.png Binary files differnew file mode 100644 index 00000000..51afbe2c --- /dev/null +++ b/src/main/resources/sparkleshare_32x32.png |