1

I'm using the default button property on all of my Modal Windows.

Which is the CSS property to modify all of them without the need of creating a new CSS class id?

enter image description here

By default all of them are light-blue with a black font color, and i don't really like it.

1 Answer 1

3

According to the documentation, you should be able to use

.button:default {
    /* your style rules here */
}

in your external CSS file.

The default stylesheet, modena.css, has the rule

.button:default {
    -fx-base: -fx-default-button ;
}

where -fx-default-button is defined as a light blue:

-fx-default-button: #ABD8ED;

so another option would just be to change the definition of -fx-default-button:

.root {
    -fx-default-button: /* your preferred color here */ ;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.