Skip to content

Commit 946c174

Browse files
committed
make cursor not blink
1 parent 0ffb0fe commit 946c174

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/bin/drawing/ui.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ pub mod views;
33
pub mod widgets;
44

55
use crate::app_state::AppState;
6-
use egui::vec2;
76
use egui::Color32;
87
use egui::FontDefinitions;
98
use egui::Layout;
109
use egui::Style;
1110
use egui::Visuals;
11+
use egui::vec2;
1212
use egui_wgpu_backend::RenderPass;
1313
use egui_wgpu_backend::ScreenDescriptor;
1414
use egui_winit_platform::PlatformDescriptor;
@@ -83,6 +83,9 @@ impl Hud {
8383
self.platform.begin_pass();
8484

8585
// Draw the demo application.
86+
self.platform
87+
.context()
88+
.style_mut(|style| style.visuals.text_cursor.blink = false);
8689
self.ui.ui(&self.platform.context(), app_state);
8790

8891
// End the UI frame. We could now handle the output and draw the UI with the backend.

0 commit comments

Comments
 (0)