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. cssref.diff
          5 kB
        2. rt19455.patch
          11 kB
        3. test-image-1.png
          test-image-1.png
          15 kB
        4. test-image-2.png
          test-image-2.png
          18 kB
        5. test-image-3.png
          test-image-3.png
          46 kB
        6. test-image-4.png
          test-image-4.png
          18 kB
        7. test-image-5.png
          test-image-5.png
          22 kB
        8. test-image-6.png
          test-image-6.png
          22 kB
        9. test-image-7.png
          test-image-7.png
          24 kB

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

              Created:
              Updated:
              Resolved:
              Imported: