Replace some `...` with `…`

This commit is contained in:
Emil Ernerfeldt 2024-05-29 11:48:50 +02:00
parent ffbc63e147
commit 5eee463851
5 changed files with 12 additions and 12 deletions

View File

@ -232,7 +232,7 @@ pub struct Style {
} }
impl Style { impl Style {
// TODO(emilk): rename style.interact() to maybe... `style.interactive` ? // TODO(emilk): rename style.interact() to maybe `style.interactive` ?
/// Use this style for interactive things. /// Use this style for interactive things.
/// Note that you must already have a response, /// Note that you must already have a response,
/// i.e. you must allocate space and interact BEFORE painting the widget! /// i.e. you must allocate space and interact BEFORE painting the widget!

View File

@ -154,10 +154,10 @@ impl BackendPanel {
.button("Wait 2s, then request repaint after another 3s") .button("Wait 2s, then request repaint after another 3s")
.clicked() .clicked()
{ {
log::info!("Waiting 2s before requesting repaint..."); log::info!("Waiting 2s before requesting repaint");
let ctx = ui.ctx().clone(); let ctx = ui.ctx().clone();
call_after_delay(std::time::Duration::from_secs(2), move || { call_after_delay(std::time::Duration::from_secs(2), move || {
log::info!("Request a repaint in 3s..."); log::info!("Request a repaint in 3s");
ctx.request_repaint_after(std::time::Duration::from_secs(3)); ctx.request_repaint_after(std::time::Duration::from_secs(3));
}); });
} }
@ -298,7 +298,7 @@ fn integration_ui(ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
let mut size = None; let mut size = None;
egui::ComboBox::from_id_source("viewport-size-combo") egui::ComboBox::from_id_source("viewport-size-combo")
.selected_text("Resize to...") .selected_text("Resize to")
.show_ui(ui, |ui| { .show_ui(ui, |ui| {
ui.selectable_value( ui.selectable_value(
&mut size, &mut size,

View File

@ -156,24 +156,24 @@ impl ContextMenus {
} }
fn nested_menus(ui: &mut egui::Ui) { fn nested_menus(ui: &mut egui::Ui) {
if ui.button("Open...").clicked() { if ui.button("Open").clicked() {
ui.close_menu(); ui.close_menu();
} }
ui.menu_button("SubMenu", |ui| { ui.menu_button("SubMenu", |ui| {
ui.menu_button("SubMenu", |ui| { ui.menu_button("SubMenu", |ui| {
if ui.button("Open...").clicked() { if ui.button("Open").clicked() {
ui.close_menu(); ui.close_menu();
} }
let _ = ui.button("Item"); let _ = ui.button("Item");
}); });
ui.menu_button("SubMenu", |ui| { ui.menu_button("SubMenu", |ui| {
if ui.button("Open...").clicked() { if ui.button("Open").clicked() {
ui.close_menu(); ui.close_menu();
} }
let _ = ui.button("Item"); let _ = ui.button("Item");
}); });
let _ = ui.button("Item"); let _ = ui.button("Item");
if ui.button("Open...").clicked() { if ui.button("Open").clicked() {
ui.close_menu(); ui.close_menu();
} }
}); });
@ -182,7 +182,7 @@ impl ContextMenus {
let _ = ui.button("Item2"); let _ = ui.button("Item2");
let _ = ui.button("Item3"); let _ = ui.button("Item3");
let _ = ui.button("Item4"); let _ = ui.button("Item4");
if ui.button("Open...").clicked() { if ui.button("Open").clicked() {
ui.close_menu(); ui.close_menu();
} }
}); });

View File

@ -426,7 +426,7 @@ impl ExplicitGenerator {
/// Result of [`super::PlotItem::find_closest()`] search, identifies an element inside the item for immediate use /// Result of [`super::PlotItem::find_closest()`] search, identifies an element inside the item for immediate use
pub struct ClosestElem { pub struct ClosestElem {
/// Position of hovered-over value (or bar/box-plot/...) in `PlotItem` /// Position of hovered-over value (or bar/box-plot/) in `PlotItem`
pub index: usize, pub index: usize,
/// Squared distance from the mouse cursor (needed to compare against other `PlotItems`, which might be nearer) /// Squared distance from the mouse cursor (needed to compare against other `PlotItems`, which might be nearer)

View File

@ -103,9 +103,9 @@ impl eframe::App for Application {
None => "Unfocus the window, fast!".to_owned(), None => "Unfocus the window, fast!".to_owned(),
Some(t) => { Some(t) => {
if let Ok(elapsed) = t.duration_since(SystemTime::now()) { if let Ok(elapsed) = t.duration_since(SystemTime::now()) {
format!("Resetting attention in {} s...", elapsed.as_secs()) format!("Resetting attention in {} s", elapsed.as_secs())
} else { } else {
"Resetting attention...".to_owned() "Resetting attention".to_owned()
} }
} }
} }