This commit is contained in:
Roland Fredenhagen 2023-11-13 01:38:25 +01:00
parent 7467f6408e
commit 90884a8184
No known key found for this signature in database
GPG key ID: 094AF99241035EB6
2 changed files with 3 additions and 6 deletions

View file

@ -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};

View file

@ -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(),