From caf4dd5849786f6b51c715a2e63d6f25ebe90090 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 3 Jul 2024 21:49:01 +0300 Subject: [PATCH] ui: disable labels text selection --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index b5f9970..3f70f65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,6 +136,9 @@ pub fn start(mut options: NativeOptions, app_creator: eframe::AppCreator) -> efr /// Setup application [`egui::Style`] and [`egui::Visuals`]. pub fn setup_visuals(ctx: &Context) { let mut style = (*ctx.style()).clone(); + // Setup selection. + style.interaction.selectable_labels = false; + style.interaction.multi_widget_text_select = false; // Setup spacing for buttons. style.spacing.button_padding = egui::vec2(12.0, 8.0); // Make scroll-bar thinner and lighter.