Summary: | Javadoc hover strip background should be the same as Javadoc body's background | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Leo Ufimtsev <lufimtse> | ||||||
Component: | UI | Assignee: | Leo Ufimtsev <lufimtse> | ||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | daniel_megert, markus.kell.r | ||||||
Version: | 4.7 | ||||||||
Target Milestone: | 4.7 M7 | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
See Also: |
https://git.eclipse.org/r/96065 https://git.eclipse.org/r/96066 https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=73ff2c16d11d91e0ca6c479cf07cb665309d3bbd https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1ced1b594fcdd3fd43ef1529449ef77eb8cadaa4 https://bugs.eclipse.org/bugs/show_bug.cgi?id=516003 https://bugs.eclipse.org/bugs/show_bug.cgi?id=516420 |
||||||||
Whiteboard: | |||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 507072 | ||||||||
Attachments: |
|
Description
Leo Ufimtsev
2017-04-28 15:52:18 EDT
Created attachment 268076 [details]
Problem Screenshot - different colors
Created attachment 268077 [details]
Solution screenshot - Same colors
New Gerrit change created: https://git.eclipse.org/r/96066 *** Bug 508494 has been marked as a duplicate of this bug. *** *** Bug 508776 has been marked as a duplicate of this bug. *** Awaiting patch reviews. Gerrit change https://git.eclipse.org/r/96065 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=73ff2c16d11d91e0ca6c479cf07cb665309d3bbd Gerrit change https://git.eclipse.org/r/96066 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=1ced1b594fcdd3fd43ef1529449ef77eb8cadaa4 NOTE TO SELF: Below are notes for dark-theme related work: (To be used to investigate strip on the bottom on dark theme). Although at the moment it looks pretty decent on Dark theme, it is a slightly lower priority for now. / ---- Apply skin for dark theme. But not optimal performance? JavadocHover.java:doCreateInformationControl() ... // TODO - remove this listener if disposed? // Display.getDefault().addListener(SWT.Skin, new Listener() { //// iControl.fStatusLabel.addListener(SWT.Skin, new Listener() { // @Override // public void handleEvent(Event event) { // ColorRegistry registry2 = JFaceResources.getColorRegistry(); // Color fgRGB2 = registry2.get("org.eclipse.jdt.ui.Javadoc.foregroundColor"); //$NON-NLS-1$ // Color bgRGB2 = registry2.get("org.eclipse.jdt.ui.Javadoc.backgroundColor"); //$NON-NLS-1$ // iControl.setStatusColors(fgRGB2, bgRGB2); // } // }); // ---- Find what's triggering color change by dark theme. Control: public void setForeground (Color color) { // if (this instanceof Label) { // Label label = (Label) this; // if (label.getText().contains("F2")) { // String col = ""; // if (color != null) // col = color.toString(); // System.out.println("LABEL COLOR CHANGE:" + col); // if (col.contains("238")) { // System.out.println("Gray"); // } // } // } // Don't style that label org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(Object, boolean, boolean) // if ("Label".equals(elt.getNodeName())) { // if (elt instanceof Widget) { // Widget widget = (Widget) element; // Label label = (Label) widget; // if (label.getText().contains("F2")) { // System.out.println("LABEL COLOR CHANGE AT CSS LEVEL"); // return; // } // } // } |