widget/material: Make checkbox/radio buttons icon modifiable

Signed-off-by: songpv <pvsong10@icloud.com>
This commit is contained in:
Elias Naur
2020-08-10 21:33:20 +02:00
parent a063febed9
commit c3574cdabd
3 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ func CheckBox(th *Theme, checkBox *widget.Bool, label string) CheckBoxStyle {
TextSize: th.TextSize.Scale(14.0 / 16.0),
Size: unit.Dp(26),
shaper: th.Shaper,
checkedStateIcon: th.checkBoxCheckedIcon,
uncheckedStateIcon: th.checkBoxUncheckedIcon,
checkedStateIcon: th.Icon.CheckBoxChecked,
uncheckedStateIcon: th.Icon.CheckBoxUnchecked,
},
}
}