From 7a50e9e8fbb8d37e53a42c1dd5936b97463ead53 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 21 Jan 2024 17:56:01 +0100 Subject: Convert `Renderer::Theme` to generic `Widget` type --- examples/custom_shader/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/custom_shader') diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs index 3bfa3a43..78b2fbbb 100644 --- a/examples/custom_shader/src/main.rs +++ b/examples/custom_shader/src/main.rs @@ -8,8 +8,8 @@ use iced::widget::shader::wgpu; use iced::widget::{checkbox, column, container, row, shader, slider, text}; use iced::window; use iced::{ - Alignment, Application, Color, Command, Element, Length, Renderer, - Subscription, Theme, + Alignment, Application, Color, Command, Element, Length, Subscription, + Theme, }; fn main() -> iced::Result { @@ -72,7 +72,7 @@ impl Application for IcedCubes { Command::none() } - fn view(&self) -> Element<'_, Self::Message, Renderer> { + fn view(&self) -> Element<'_, Self::Message> { let top_controls = row![ control( "Amount", -- cgit