mirror of
https://github.com/danbulant/cushy
synced 2026-05-24 12:28:23 +00:00
format
This commit is contained in:
parent
7467f6408e
commit
90884a8184
2 changed files with 3 additions and 6 deletions
|
|
@ -3,10 +3,10 @@ use std::panic::UnwindSafe;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use kludgine::app::winit::event::{DeviceId, ElementState, KeyEvent, MouseButton};
|
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::figures::{IntoSigned, IntoUnsigned, Point, Rect, ScreenScale, Size};
|
||||||
use kludgine::Color;
|
|
||||||
use kludgine::shapes::StrokeOptions;
|
use kludgine::shapes::StrokeOptions;
|
||||||
|
use kludgine::Color;
|
||||||
|
|
||||||
use crate::animation::{AnimationHandle, AnimationTarget, LinearInterpolate, Spawn};
|
use crate::animation::{AnimationHandle, AnimationTarget, LinearInterpolate, Spawn};
|
||||||
use crate::context::{AsEventContext, EventContext, GraphicsContext, LayoutContext, WidgetContext};
|
use crate::context::{AsEventContext, EventContext, GraphicsContext, LayoutContext, WidgetContext};
|
||||||
|
|
|
||||||
|
|
@ -317,10 +317,7 @@ impl Widget for Input {
|
||||||
if window_focused && cursor_state.visible {
|
if window_focused && cursor_state.visible {
|
||||||
context.gfx.draw_shape(
|
context.gfx.draw_shape(
|
||||||
&Shape::filled_rect(
|
&Shape::filled_rect(
|
||||||
Rect::new(
|
Rect::new(location, Size::new(Px(1), line_height)),
|
||||||
location,
|
|
||||||
Size::new(Px(1), line_height),
|
|
||||||
),
|
|
||||||
highlight, // TODO cursor should be a bold color, highlight probably not. This should have its own color.
|
highlight, // TODO cursor should be a bold color, highlight probably not. This should have its own color.
|
||||||
),
|
),
|
||||||
Point::default(),
|
Point::default(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue