diff options
| author | Niraj Modi | 2019-06-19 07:34:14 +0000 |
|---|---|---|
| committer | Niraj Modi | 2019-06-19 12:19:39 +0000 |
| commit | d9f48342306be62cedf7b7cc6e1fb468c5255d45 (patch) | |
| tree | c11f0a0f9b0cd6334847c1010a2356290eba2bac | |
| parent | 2470d69b4b084655198d367bf4e84c2b13bd397b (diff) | |
| download | eclipse.platform.swt-d9f48342306be62cedf7b7cc6e1fb468c5255d45.tar.gz eclipse.platform.swt-d9f48342306be62cedf7b7cc6e1fb468c5255d45.tar.xz eclipse.platform.swt-d9f48342306be62cedf7b7cc6e1fb468c5255d45.zip | |
Bug 548327 - [Win32] Add color constants for disabled background and
foreground colors
Change-Id: I2e27455df945d7b24c14c8f6fa0ae905fc95f658
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 018f65a453..20fb7fb183 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2018 IBM Corporation and others. + * Copyright (c) 2000, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -2262,9 +2262,11 @@ public Color getSystemColor (int id) { int pixel = 0x00000000; switch (id) { case SWT.COLOR_WIDGET_DARK_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DDKSHADOW); break; + case SWT.COLOR_WIDGET_DISABLED_FOREGROUND: pixel = OS.GetSysColor(OS.COLOR_GRAYTEXT); break; case SWT.COLOR_WIDGET_NORMAL_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DSHADOW); break; case SWT.COLOR_WIDGET_LIGHT_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DLIGHT); break; case SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DHIGHLIGHT); break; + case SWT.COLOR_TEXT_DISABLED_BACKGROUND: case SWT.COLOR_WIDGET_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_3DFACE); break; case SWT.COLOR_WIDGET_BORDER: pixel = OS.GetSysColor (OS.COLOR_WINDOWFRAME); break; case SWT.COLOR_WIDGET_FOREGROUND: |
