RFR: 8090547: Allow for transparent backgrounds in WebView [v5]
Jose Pereda
jpereda at openjdk.java.net
Fri Aug 27 15:41:59 UTC 2021
> Currently, `WebPage` has already a public `setBackgroundColor()` method, but the class is not public. Therefore, public API is needed in `WebView` to allow developers access to it.
>
> In line with the `fontSmoothingType` property, this PR provides public support for setting the background color of a WebPage, by adding a `pageFill` property, and a CSR is required.
>
> The color for the background, that can be opaque, transparent or with any level of opacity, can be set via code or via CSS using `-fx-page-fill`.
>
> Unit tests and a system test are provided.
Jose Pereda has updated the pull request incrementally with one additional commit since the last revision:
Color to int32 conversion and more changes based on feedback
-------------
Changes:
- all: https://git.openjdk.java.net/jfx/pull/563/files
- new: https://git.openjdk.java.net/jfx/pull/563/files/3a75240c..5c7567b7
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jfx&pr=563&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jfx&pr=563&range=03-04
Stats: 30 lines in 3 files changed: 13 ins; 5 del; 12 mod
Patch: https://git.openjdk.java.net/jfx/pull/563.diff
Fetch: git fetch https://git.openjdk.java.net/jfx pull/563/head:pull/563
PR: https://git.openjdk.java.net/jfx/pull/563
More information about the openjfx-dev
mailing list