Closed RealThanhpv closed 11 months 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; } }
I believe toggle buttons need the border inset value as the background color for border is set.