Change radio button style
This commit is contained in:
parent
c2e03d2193
commit
5996323899
@ -181,7 +181,7 @@ public class OverviewPage extends AbstractPage {
|
||||
|
||||
var opt1 = new CheckBox("Option 1");
|
||||
|
||||
var opt2 = new CheckBox("Option 1");
|
||||
var opt2 = new CheckBox("Option 2");
|
||||
opt2.setSelected(true);
|
||||
|
||||
var opt3 = new CheckBox("Option 3");
|
||||
@ -200,7 +200,7 @@ public class OverviewPage extends AbstractPage {
|
||||
var opt1 = new RadioButton("Option 1");
|
||||
opt1.setToggleGroup(group);
|
||||
|
||||
var opt2 = new RadioButton("Option 1");
|
||||
var opt2 = new RadioButton("Option 2");
|
||||
opt2.setToggleGroup(group);
|
||||
opt2.setSelected(true);
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
// applied to label
|
||||
-fx-text-fill: -color-fg-default;
|
||||
-fx-label-padding: cfg.$checkbox-label-padding cfg.$checkbox-label-padding cfg.$checkbox-label-padding cfg.$graphic-gap;
|
||||
-fx-label-padding: cfg.$checkbox-label-padding cfg.$checkbox-label-padding 0 cfg.$graphic-gap;
|
||||
|
||||
>.box {
|
||||
-fx-background-color: -color-fg-default, -color-bg-default;
|
||||
|
@ -7,7 +7,7 @@
|
||||
// applied to label
|
||||
-fx-background-color: -color-bg-default;
|
||||
-fx-text-fill: -color-fg-default;
|
||||
-fx-label-padding: cfg.$checkbox-label-padding cfg.$checkbox-label-padding cfg.$checkbox-label-padding cfg.$graphic-gap;
|
||||
-fx-label-padding: cfg.$checkbox-label-padding cfg.$checkbox-label-padding 0 cfg.$graphic-gap;
|
||||
|
||||
>.radio {
|
||||
-fx-background-color: -color-fg-default, -color-bg-default;
|
||||
@ -17,7 +17,8 @@
|
||||
-fx-alignment: CENTER;
|
||||
|
||||
>.dot {
|
||||
-fx-background-color: transparent;
|
||||
-fx-background-color: transparent, transparent;
|
||||
-fx-background-insets: 0, 1px;
|
||||
-fx-background-radius: 1em; // large value to make sure this remains circular
|
||||
-fx-min-height: cfg.$checkbox-mark-size;
|
||||
-fx-max-height: cfg.$checkbox-mark-size;
|
||||
@ -36,10 +37,10 @@
|
||||
|
||||
&:selected {
|
||||
>.radio {
|
||||
-fx-background-color: -color-accent-emphasis, -color-bg-default;
|
||||
-fx-background-color: -color-accent-emphasis;
|
||||
|
||||
>.dot {
|
||||
-fx-background-color: -color-accent-emphasis;
|
||||
-fx-background-color: -color-accent-emphasis, -color-fg-emphasis;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user