mkpaz / atlantafx

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

Toggle-button background inset for border is not set (0) #72

Closed RealThanhpv closed 11 months ago

RealThanhpv commented 1 year ago

I believe toggle buttons need the border inset value as the background color for border is set.

.toggle-button {
  @include button.base();

  -color-button-bg-selected: $color-bg-selected;
  -color-button-fg-selected: $color-fg-selected;

  -fx-padding: cfg.$padding-y cfg.$padding-x cfg.$padding-y cfg.$padding-x;

  &:selected,
  &:selected:focused {
    -fx-background-color: $color-border-selected, -color-button-bg-selected;
    -fx-text-fill: -color-button-fg-selected;
    -fx-background-insets: 0;

    #{cfg.$font-icon-selector} {
      -fx-fill: -color-button-fg-selected;
      -fx-icon-color: -color-button-fg-selected;
    }
  }