Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2015-01-20 19:10:19 +0000
committerMatthias Sohn2015-01-22 22:59:53 +0000
commite4412e3c79593699da354252539c7a9fb95ba4a3 (patch)
treedcf431f2dd08eadc239bc91713e732bafa6f70bc
parent4c5d0f158279cd7ab4ab259d2ecfe998386e6be1 (diff)
downloadegit-e4412e3c79593699da354252539c7a9fb95ba4a3.tar.gz
egit-e4412e3c79593699da354252539c7a9fb95ba4a3.tar.xz
egit-e4412e3c79593699da354252539c7a9fb95ba4a3.zip
Transparent icons in push branch dialog
setBackgroundImage() has problems with transparency on some platforms (seen on Windows7). Therefore the 2 icons in that dialog have solid white and black background. Fixed by using setImage() as in all other dialogs. Tested on Windows 7 and Ubuntu/GTK. Change-Id: I84fd41b292a15f823abb5d517325314adba95579 Signed-off-by: Michael Keppler <michael.keppler@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushBranchPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushBranchPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushBranchPage.java
index af4a0eb94e..86fef6984a 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushBranchPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushBranchPage.java
@@ -192,7 +192,7 @@ public class PushBranchPage extends WizardPage {
branchIconLabel
.setLayoutData(new RowData(branchIcon.getBounds().width,
branchIcon.getBounds().height));
- branchIconLabel.setBackgroundImage(branchIcon);
+ branchIconLabel.setImage(branchIcon);
Label localBranchLabel = new Label(sourceComposite, SWT.NONE);
localBranchLabel.setText(Repository.shortenRefName(this.ref
.getName()));
@@ -204,7 +204,7 @@ public class PushBranchPage extends WizardPage {
Image commitIcon = UIIcons.CHANGESET.createImage();
this.disposables.add(commitIcon);
Label commitIconLabel = new Label(sourceComposite, SWT.NONE);
- commitIconLabel.setBackgroundImage(commitIcon);
+ commitIconLabel.setImage(commitIcon);
commitIconLabel.setLayoutData(new RowData(commitIcon.getBounds().width,
commitIcon.getBounds().height));

Back to the top