summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2013-02-11 15:27:26 -0500
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2013-02-11 15:27:26 -0500
commit7c92d5ff0643958336782e2069edc7bbe8f71d49 (patch)
tree00124728f6ae0ccae680ded2a6db339dba7470b9
parent4a0c4d66b4fe0f14fcc9aed38973cb6e1387b844 (diff)
downloadeclipse.platform.swt-7c92d5ff0643958336782e2069edc7bbe8f71d49.tar.gz
eclipse.platform.swt-7c92d5ff0643958336782e2069edc7bbe8f71d49.tar.xz
eclipse.platform.swt-7c92d5ff0643958336782e2069edc7bbe8f71d49.zip
Bug 181592 - [Widgets] Need a color constant for active and inactive hyperlink colors
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java7
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java1
2 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java
index 971bc52d9a..3171f40964 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java
@@ -3168,6 +3168,13 @@ public class SWT {
* System color used to paint inactive title background gradient (value is 35).
*/
public static final int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT = 35;
+
+ /**
+ * System color used to paint link text (value is 36).
+ *
+ * @since 4.3
+ */
+ public static final int COLOR_LINK_FOREGROUND = 36;
/**
* Draw constant indicating whether the drawing operation
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index 042a3ec9eb..e836f3bbab 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -2363,6 +2363,7 @@ public Color getSystemColor (int id) {
case SWT.COLOR_LIST_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_WINDOW); break;
case SWT.COLOR_LIST_SELECTION: pixel = OS.GetSysColor (OS.COLOR_HIGHLIGHT); break;
case SWT.COLOR_LIST_SELECTION_TEXT: pixel = OS.GetSysColor (OS.COLOR_HIGHLIGHTTEXT);break;
+ case SWT.COLOR_LINK_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_HOTLIGHT);break;
case SWT.COLOR_INFO_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_INFOTEXT); break;
case SWT.COLOR_INFO_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_INFOBK); break;
case SWT.COLOR_TITLE_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_CAPTIONTEXT); break;