Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-12-16 10:35:38 +0000
committerAlexander Kurtakov2016-12-19 20:37:51 +0000
commitf146ed6fbac19b26a88249a2000eb3bce2a7a409 (patch)
treeed87f3849a88e64096f10bfd3d21c4ca384761d2 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom
parent716f5f305a4946953616a579e19175683b353f12 (diff)
downloadeclipse.platform.swt-f146ed6fbac19b26a88249a2000eb3bce2a7a409.tar.gz
eclipse.platform.swt-f146ed6fbac19b26a88249a2000eb3bce2a7a409.tar.xz
eclipse.platform.swt-f146ed6fbac19b26a88249a2000eb3bce2a7a409.zip
Bug 374985 - [GTK/Linux] red background of min/max icons on gtk64
SWT fails to find the transparent color in the palette of the image data created by GTK if the palette is reduced to 16 bit (e.g. in a vnc session with 16 bit color depth). The solution is: just use slightly different color value for the transparent pixel which fits into 16 bit color palette and can be found later by imageData.palette.getPixel(transparent). See proposal made in bug 374985 comment 9 by Daniel Friederich. Change-Id: I216227be1e5fa2a16ce12cb36c7c84951394e29e Signed-off-by: Andrey Loskutov <loskutov@gmx.de> Also-by: Daniel Friederich <danielfriederich@gmx.net>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index db36c85036..c2e9be3d93 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -737,7 +737,7 @@ Image createButtonImage(Display display, int button) {
if (button == CTabFolderRenderer.PART_CHEVRON_BUTTON) {
transparent = new RGB(0xFF, 0xFF, 0xFF);
} else {
- transparent = new RGB(0xFD, 0, 0);
+ transparent = new RGB(0xF7, 0, 0);
}
Color transColor = new Color(display, transparent);
gc.setBackground(transColor);

Back to the top