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
@@ -27,8 +27,8 @@ func RadioButton(th *Theme, group *widget.Enum, key, label string) RadioButtonSt
TextSize: th.TextSize.Scale(14.0 / 16.0),
Size: unit.Dp(26),
shaper: th.Shaper,
checkedStateIcon: th.radioCheckedIcon,
uncheckedStateIcon: th.radioUncheckedIcon,
checkedStateIcon: th.Icon.RadioChecked,
uncheckedStateIcon: th.Icon.RadioUnchecked,
},
Key: key,
}