mkpaz / atlantafx

Modern JavaFX CSS theme collection with additional controls.
https://mkpaz.github.io/atlantafx
MIT License
829 stars 66 forks source link

Invisible slider #89

Open papersaccul opened 7 months ago

papersaccul commented 7 months ago

I have a slider

private Slider volumeSlider;
...

volumeSlider = new Slider(0, 100, 100);
volumeSlider.valueProperty().addListener((observable, oldValue, newValue) -> videoSettings.setVolume(newValue.doubleValue()));

...

@Override
    public void updateVideoSettingsInfo(VideoSettings videoSettings) {
        if (videoSettings != null) {
        volumeSlider.setValue(videoSettings.getVolume());
        ....
    }

With the NordDark or NordLight theme, I get this image

Without themes, it's look and work fine image

From the changes from my side - I only change the colors of the buttons through my css and the background color through the code (it's not the cause of the problem)

I am loading the theme through maven

<dependency>
            <groupId>io.github.mkpaz</groupId>
            <artifactId>atlantafx-base</artifactId>
            <version>2.0.1</version>
</dependency> 

and just import and set

 import atlantafx.base.theme.NordDark;
 ...
 Application.setUserAgentStylesheet(new NordDark().getUserAgentStylesheet());

Full my code u can see on https://github.com/papersaccul/paperFFeditor if u need it

mkpaz commented 2 months ago

I can't imagine how this is possible. If it's still possible, could you please provide a minimally reproducible example?