mkpaz / atlantafx

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

RadioButton Background Color #60

Closed robbiezl closed 1 year ago

robbiezl commented 1 year ago

I found radio-button has a backgournd color,I think it should have no background,it should be transparent

.radio-button { -fx-background-color: -color-bg-default; -fx-text-fill: -color-fg-default; -fx-label-padding: 2px 2px 0 6px; }

mkpaz commented 1 year ago

No, it can't be transparent, because radio button uses bg insets to draw its borders. So, it's basically the white circle above the gray circle, you can't make the top layer transparent. It would be possible if it used the border stroke instead of bg insets.

robbiezl commented 1 year ago

I found some component's padding size is different compare with the modena.css,this may cause incomplete text display. for example, in modena css button's padding:

-fx-padding: 0.333333em 0.666667em 0.333333em 0.666667em; / 4 8 4 8 /

in cupertino-light button's padding:

-fx-padding: 6px 12px 6px 12px;****