ui: disable labels text selection
This commit is contained in:
parent
b230444ed3
commit
caf4dd5849
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ pub fn start(mut options: NativeOptions, app_creator: eframe::AppCreator) -> efr
|
||||||
/// Setup application [`egui::Style`] and [`egui::Visuals`].
|
/// Setup application [`egui::Style`] and [`egui::Visuals`].
|
||||||
pub fn setup_visuals(ctx: &Context) {
|
pub fn setup_visuals(ctx: &Context) {
|
||||||
let mut style = (*ctx.style()).clone();
|
let mut style = (*ctx.style()).clone();
|
||||||
|
// Setup selection.
|
||||||
|
style.interaction.selectable_labels = false;
|
||||||
|
style.interaction.multi_widget_text_select = false;
|
||||||
// Setup spacing for buttons.
|
// Setup spacing for buttons.
|
||||||
style.spacing.button_padding = egui::vec2(12.0, 8.0);
|
style.spacing.button_padding = egui::vec2(12.0, 8.0);
|
||||||
// Make scroll-bar thinner and lighter.
|
// Make scroll-bar thinner and lighter.
|
||||||
|
|
Loading…
Reference in a new issue