From 90884a81845c1afe304c3646b6ccafcb2a3cc241 Mon Sep 17 00:00:00 2001 From: Roland Fredenhagen Date: Mon, 13 Nov 2023 01:38:25 +0100 Subject: [PATCH] format --- src/widgets/button.rs | 4 ++-- src/widgets/input.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/widgets/button.rs b/src/widgets/button.rs index 7ff71ac..c55b5ce 100644 --- a/src/widgets/button.rs +++ b/src/widgets/button.rs @@ -3,10 +3,10 @@ use std::panic::UnwindSafe; use std::time::Duration; use kludgine::app::winit::event::{DeviceId, ElementState, KeyEvent, MouseButton}; -use kludgine::figures::units::{Px, UPx, Lp}; +use kludgine::figures::units::{Lp, Px, UPx}; use kludgine::figures::{IntoSigned, IntoUnsigned, Point, Rect, ScreenScale, Size}; -use kludgine::Color; use kludgine::shapes::StrokeOptions; +use kludgine::Color; use crate::animation::{AnimationHandle, AnimationTarget, LinearInterpolate, Spawn}; use crate::context::{AsEventContext, EventContext, GraphicsContext, LayoutContext, WidgetContext}; diff --git a/src/widgets/input.rs b/src/widgets/input.rs index 367c7ed..77e3b95 100644 --- a/src/widgets/input.rs +++ b/src/widgets/input.rs @@ -317,10 +317,7 @@ impl Widget for Input { if window_focused && cursor_state.visible { context.gfx.draw_shape( &Shape::filled_rect( - Rect::new( - location, - Size::new(Px(1), line_height), - ), + Rect::new(location, Size::new(Px(1), line_height)), highlight, // TODO cursor should be a bold color, highlight probably not. This should have its own color. ), Point::default(),