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

Textured paints via css

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • fx2.0.2
    • javafx

      I'd like the ability to specify a custom textured paint (e.g. a linen paper, slate rock or sandstone texture) as the base for the whole UI or some controls so that the the UI can easily be nicely textured in addition to being color coordinated (similar to textures available on a laminated or tiled floor).

      As a background, caspian.css defines the following setting:

         /* A light grey that is the base color for objects. */
        -fx-base: #d0d0d0;

      This is great because, by overriding just one setting in your custom css, you can get a totally different themed color for your application. Applying a custom textured paint here, and having the default css adapt so that everything still looks good, is the kind of thing I'm requesting. Optional use of a bump mapped effect may also be considered.

        1. rt19455.patch
          11 kB
          Richard Bair
        2. test-image-1.png
          15 kB
          Richard Bair
        3. test-image-2.png
          18 kB
          Richard Bair
        4. test-image-3.png
          46 kB
          Richard Bair
        5. test-image-4.png
          18 kB
          Richard Bair
        6. test-image-5.png
          22 kB
          Richard Bair
        7. test-image-6.png
          22 kB
          Richard Bair
        8. test-image-7.png
          24 kB
          Richard Bair
        9. cssref.diff
          5 kB
          David Grieve

            rbair Richard Bair (Inactive)
            josmithjfx John Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: