summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Scott Harper <sharper@nvidia.com>2020-05-15 11:27:24 +0900
committerLibravatar Scott Harper <sharper@nvidia.com>2020-05-15 11:27:24 +0900
commit863714602c1c0703e7872ecc014fc4a0aa33ecc4 (patch)
tree983c4f7d7875c86d50d7975aee6aa09926b1f7ba /wgpu
parent7565d294afd668cc95d85f15662d0704962c9614 (diff)
downloadiced-863714602c1c0703e7872ecc014fc4a0aa33ecc4.tar.gz
iced-863714602c1c0703e7872ecc014fc4a0aa33ecc4.tar.bz2
iced-863714602c1c0703e7872ecc014fc4a0aa33ecc4.zip
Updated `Radio` layout/fns to match `Checkbox`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/renderer/widget/radio.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/wgpu/src/renderer/widget/radio.rs b/wgpu/src/renderer/widget/radio.rs
index 2f1461db..cee0deb6 100644
--- a/wgpu/src/renderer/widget/radio.rs
+++ b/wgpu/src/renderer/widget/radio.rs
@@ -7,9 +7,8 @@ const DOT_SIZE: f32 = SIZE / 2.0;
impl radio::Renderer for Renderer {
type Style = Box<dyn StyleSheet>;
- fn default_size(&self) -> u32 {
- SIZE as u32
- }
+ const DEFAULT_SIZE: u16 = SIZE as u16;
+ const DEFAULT_SPACING: u16 = 15;
fn draw(
&mut self,