JDK-8093574 : [CSS] DatePicker and ProgressIndicator drawn with non-transparent background
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8u40
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-07-17
  • Updated: 2015-06-12
  • Resolved: 2014-10-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u40Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
The DatePicker and indeterminate ProgressIndicator (at least) controls are now rendered with a non-transparent background with a gradient, giving them a Button-like appearance.

This is regression caused by the fix for RT-5747 (the addition of the Spinner control). See the attached screen shots for the good and bad style.
Comments
Changeset: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/f22a2f8eba48
06-10-2014

Raising the priority back to P2, since it is a very visible regression, there is no known workaround, and we have received many reports of duplicate bugs.
19-09-2014

spinner can be overloaded as a name as long as we don't write css selectors that only select based on '.spinner' for anything other than the Spinner control. In other words, if we used (and I'm plucking this example out of the air, I haven't specifically looked at the existing css) '.progress-indicator .spinner', 'date-picker .spinner' and '.spinner', we could individually target all the instances separately. Jasper and / or Mo should probably be able to rectify this without the need for changing any style classes.
29-07-2014

Interesting. Does this mean the name "spinner" is gone?
28-07-2014

A quick grep of the sources reveals that only the two existing controls mentioned above, ProgressIndicator (with indeterminate progress) and DatePicker, use the name "spinner" in their styles. Given that the bug is limited to these two controls I am lowering it to P3 (but still must be fixed).
17-07-2014

I think it is a naming collision. 1) ProgressIndicator sets its style class to "spinner" 2) DatePicker also uses the "spinner" name in its css
17-07-2014

I can not see after a quick look in the new CSS why this would happen.
17-07-2014

Reverting just the changes to modena.css makes the problem go away.
17-07-2014