Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8121645

Using a style class to set gradient does not change the color editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • None

      Define in a stylesheet file the linear gradient rule:
      .lineargradient {
      -fx-fill: linear (0%,0%) to (0%,100%) stops (0%,derive(-fx-color,-9%)) (100%,derive(-fx-color,-33%));
      }

      Then, apply it to a Rectangle, from the Look tab.
      The Fill property should not allow to change the color fields, and a CSS button should appear.

            jfdenise Jean-Francois Denise (Inactive)
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: