Situation
I am using a BackgroundImage to set the background for a JavaFX Region, like this:
region.setBackground(Background(BackgroundImage(Image(url)), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER, BackgroundSize(100.0, 100.0, true, true, true, true))))
Problem
I would like to darken the background somehow so that the white font stays readable.
What I've tried
I have searched through Image, BackgroundImage and Background, but none have any way to add an effect. I found that I can add an effect directly to the Region, but when I add the ColorAdjust, it darkens everything, not just the background.
I really don't care at which layer it is set, it could even be in CSS, I simply want to somehow darken the BackgroundImage.