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

[CSS] Derived chart color palette

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u40
    • javafx
    • JDK 8u40,Win 7 Pro SP1, 64 Bit

      Most controls derive their colors from -fx-base by applying a particular "subdue" effect, making most controls look "equally subdue". Hence, setting "-fx-base" changes the base color but keeps the effect.

      Charts do not, unfortunately. Instead, charts apply a fixed color palette literally provided by modena.css, which is precomputed. The problem is that this makes it impossible to provide custom colors for bars and gain the "subdue" effect (as one cannot set -fx-base for bars).

      It would be great if this could be changed in a future JavaFX release, so one could write "-fx-bar-base: red" and effectively gain a "subdue red" bar.

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: