|
@ -213,6 +213,9 @@ pub struct Style { |
|
|
/// This only affects a few egui widgets.
|
|
|
/// This only affects a few egui widgets.
|
|
|
pub explanation_tooltips: bool, |
|
|
pub explanation_tooltips: bool, |
|
|
|
|
|
|
|
|
|
|
|
/// Show the URL of hyperlinks in a tooltip when hovered.
|
|
|
|
|
|
pub url_in_tooltip: bool, |
|
|
|
|
|
|
|
|
/// If true and scrolling is enabled for only one direction, allow horizontal scrolling without pressing shift
|
|
|
/// If true and scrolling is enabled for only one direction, allow horizontal scrolling without pressing shift
|
|
|
pub always_scroll_the_only_direction: bool, |
|
|
pub always_scroll_the_only_direction: bool, |
|
|
} |
|
|
} |
|
@ -1212,6 +1215,7 @@ impl Default for Style { |
|
|
#[cfg(debug_assertions)] |
|
|
#[cfg(debug_assertions)] |
|
|
debug: Default::default(), |
|
|
debug: Default::default(), |
|
|
explanation_tooltips: false, |
|
|
explanation_tooltips: false, |
|
|
|
|
|
url_in_tooltip: false, |
|
|
always_scroll_the_only_direction: false, |
|
|
always_scroll_the_only_direction: false, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1474,6 +1478,7 @@ impl Style { |
|
|
#[cfg(debug_assertions)] |
|
|
#[cfg(debug_assertions)] |
|
|
debug, |
|
|
debug, |
|
|
explanation_tooltips, |
|
|
explanation_tooltips, |
|
|
|
|
|
url_in_tooltip, |
|
|
always_scroll_the_only_direction, |
|
|
always_scroll_the_only_direction, |
|
|
} = self; |
|
|
} = self; |
|
|
|
|
|
|
|
@ -1544,6 +1549,8 @@ impl Style { |
|
|
"Show explanatory text when hovering DragValue:s and other egui widgets", |
|
|
"Show explanatory text when hovering DragValue:s and other egui widgets", |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
ui.checkbox(url_in_tooltip, "Show url when hovering links"); |
|
|
|
|
|
|
|
|
ui.checkbox(always_scroll_the_only_direction, "Always scroll the only enabled direction") |
|
|
ui.checkbox(always_scroll_the_only_direction, "Always scroll the only enabled direction") |
|
|
.on_hover_text( |
|
|
.on_hover_text( |
|
|
"If scrolling is enabled for only one direction, allow horizontal scrolling without pressing shift", |
|
|
"If scrolling is enabled for only one direction, allow horizontal scrolling without pressing shift", |
|
|