Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 147197 Details for
Bug 289465
User defined gradient in high contrast display mode should be treated as solid fill color
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
HighContrastFix_gmf.txt (text/plain), 2.01 KB, created by
Lidija Grahek
on 2009-09-15 10:05:55 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Lidija Grahek
Created:
2009-09-15 10:05:55 EDT
Size:
2.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.runtime.gef.ui >Index: src/org/eclipse/gmf/runtime/gef/ui/figures/NodeFigure.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.gef.ui/src/org/eclipse/gmf/runtime/gef/ui/figures/NodeFigure.java,v >retrieving revision 1.11 >diff -u -r1.11 NodeFigure.java >--- src/org/eclipse/gmf/runtime/gef/ui/figures/NodeFigure.java 30 Jan 2009 19:37:13 -0000 1.11 >+++ src/org/eclipse/gmf/runtime/gef/ui/figures/NodeFigure.java 15 Sep 2009 13:58:39 -0000 >@@ -1,5 +1,5 @@ > /****************************************************************************** >- * Copyright (c) 2002, 2008 IBM Corporation and others. >+ * Copyright (c) 2002, 2009 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -30,6 +30,7 @@ > import org.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorder; > import org.eclipse.swt.SWT; > import org.eclipse.swt.graphics.Path; >+import org.eclipse.swt.widgets.Display; > > /** > * Base class that most shape figures should extend from to gain default connection anchor behavior. >@@ -353,6 +354,10 @@ > * @since 1.2 > */ > public void setGradientData(int gradientColor1, int gradientColor2, int gradientStyle) { >+ if (Display.getDefault().getHighContrast()) { >+ setBackgroundColor(null); >+ return; >+ } > boolean doRepaint = false; > if (gradientColor1 != this.gradientColor1 && gradientColor1 > -1) { > this.gradientColor1 = gradientColor1; >@@ -378,7 +383,11 @@ > * @since 1.2 > */ > public boolean isUsingGradient() { >- return isUsingGradient && gradientColor1 > -1 && gradientColor2 > -1; >+ if (Display.getDefault().getHighContrast()) { >+ return false; >+ } else { >+ return isUsingGradient && gradientColor1 > -1 && gradientColor2 > -1; >+ } > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 289465
:
147197
|
154692