From 7c08c6bd138207b862933ee479752a4f1d18c4f2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 21 Oct 2021 18:50:27 +0700 Subject: Remove `Renderer` trait for `Checkbox` --- graphics/src/widget/checkbox.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'graphics') diff --git a/graphics/src/widget/checkbox.rs b/graphics/src/widget/checkbox.rs index 3b756525..a458d85c 100644 --- a/graphics/src/widget/checkbox.rs +++ b/graphics/src/widget/checkbox.rs @@ -1,23 +1,10 @@ //! Show toggle controls using checkboxes. -use crate::backend::{self, Backend}; use crate::Renderer; -use iced_native::checkbox; - pub use iced_style::checkbox::{Style, StyleSheet}; /// A box that can be checked. /// /// This is an alias of an `iced_native` checkbox with an `iced_wgpu::Renderer`. -pub type Checkbox = - iced_native::Checkbox>; - -impl checkbox::Renderer for Renderer -where - B: Backend + backend::Text, -{ - type Style = Box; - - const DEFAULT_SIZE: u16 = 20; - const DEFAULT_SPACING: u16 = 15; -} +pub type Checkbox<'a, Message, Backend> = + iced_native::Checkbox<'a, Message, Renderer>; -- cgit