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

CSS Tooltip - text is white (unreadable), if -fx-background is dark

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8u20
    • Component/s: javafx

      Description

      If I set -fx-background to a dark color, the text in the Tooltip is white, while the Tooltip's background is yellow, which results in an unreadable Tooltip.
      This is due to the ladder in the .root class.

      This fixes the problem:

      .tooltip .label {
          -fx-text-fill: -fx-dark-text-color;
      }

      Please integrate it in the caspian.css.

      This is related to:
      RT-25256

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              cschudtjfx Christian Schudt (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: