diff --git a/violet-core/src/layout/flow.rs b/violet-core/src/layout/flow.rs index 6054b13..235882e 100644 --- a/violet-core/src/layout/flow.rs +++ b/violet-core/src/layout/flow.rs @@ -2,7 +2,6 @@ use std::sync::Arc; use flax::{Entity, EntityRef, World}; use glam::{vec2, BVec2, Vec2}; -use image::imageops::colorops::contrast_in_place; use itertools::Itertools; use super::{ diff --git a/violet-core/src/state/transform.rs b/violet-core/src/state/transform.rs index c6c4d8e..b7813d6 100644 --- a/violet-core/src/state/transform.rs +++ b/violet-core/src/state/transform.rs @@ -2,7 +2,7 @@ use std::{marker::PhantomData, sync::Arc}; use futures::StreamExt; -use super::{State, StateMut, StateOwned, StateSink, StateStream, StateStreamRef}; +use super::{State, StateMut, StateOwned, StateSink, StateStream}; pub struct Transform { inner: C, diff --git a/violet-core/src/widget/interactive/button.rs b/violet-core/src/widget/interactive/button.rs index 9efef8a..86f6122 100644 --- a/violet-core/src/widget/interactive/button.rs +++ b/violet-core/src/widget/interactive/button.rs @@ -1,12 +1,9 @@ -use flax::{component::ComponentValue, EntityRef}; +use flax::EntityRef; use palette::Srgba; -use winit::{ - event::{ElementState, MouseButton}, - platform::pump_events::EventLoopExtPumpEvents, -}; +use winit::event::{ElementState, MouseButton}; use crate::{ - components::{self, color, widget_corner_radius}, + components::{self}, input::{focusable, on_mouse_input}, layout::Align, scope::ScopeRef, @@ -195,7 +192,7 @@ impl Widget for Button { let pressed = self.style.pressed.resolve(&stylesheet); let normal = self.style.normal.resolve(&stylesheet); - let hover = self.style.hover.resolve(&stylesheet); + let _hover = self.style.hover.resolve(&stylesheet); let mut is_pressed = false; @@ -275,7 +272,7 @@ impl Widget for Checkbox { let pressed = self.style.pressed.resolve(&stylesheet); let normal = self.style.normal.resolve(&stylesheet); - let hover = self.style.hover.resolve(&stylesheet); + let _hover = self.style.hover.resolve(&stylesheet); let content = scope.attach(self.label); @@ -368,7 +365,7 @@ impl Widget for Radio { let pressed = self.style.pressed.resolve(&stylesheet); let normal = self.style.normal.resolve(&stylesheet); - let hover = self.style.hover.resolve(&stylesheet); + let _hover = self.style.hover.resolve(&stylesheet); let content = scope.attach(self.label); diff --git a/violet-core/src/widget/interactive/input.rs b/violet-core/src/widget/interactive/input.rs index 61de72b..325dc49 100644 --- a/violet-core/src/widget/interactive/input.rs +++ b/violet-core/src/widget/interactive/input.rs @@ -13,7 +13,7 @@ use winit::{ }; use crate::{ - components::{self, screen_transform, widget_corner_radius}, + components::{self, screen_transform}, editor::{CursorMove, EditAction, EditorAction, TextChange, TextEditor}, input::{ focusable, keep_focus, on_cursor_move, on_focus, on_keyboard_input, on_mouse_input,