From b83a4b42dd912b5f59d40e7d4f7f7ccdabc43019 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 19 Sep 2019 18:47:01 +0200 Subject: Remove generic `Color` in widgets --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 56eee559..8dd6163e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,7 +78,7 @@ //! # mod iced_wgpu { //! # use iced::{ //! # button, text, text::HorizontalAlignment, text::VerticalAlignment, -//! # MouseCursor, Node, Point, Rectangle, Style, +//! # MouseCursor, Node, Point, Rectangle, Style, Color //! # }; //! # //! # pub struct Renderer {} @@ -96,7 +96,7 @@ //! # } //! # } //! # -//! # impl text::Renderer<[f32; 4]> for Renderer { +//! # impl text::Renderer for Renderer { //! # fn node(&self, style: Style, _content: &str, _size: Option) -> Node { //! # Node::new(style) //! # } @@ -106,7 +106,7 @@ //! # _bounds: Rectangle, //! # _content: &str, //! # _size: Option, -//! # _color: Option<[f32; 4]>, +//! # _color: Option, //! # _horizontal_alignment: HorizontalAlignment, //! # _vertical_alignment: VerticalAlignment, //! # ) { -- cgit