1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00
This commit is contained in:
YgorSouza
2024-06-18 22:10:59 +02:00
committed by GitHub
parent 3cdb667cd6
commit ee3b04ea17
5 changed files with 9 additions and 9 deletions

View File

@@ -226,7 +226,7 @@ fn label_ui(ui: &mut egui::Ui) {
ui.add(
egui::Label::new(
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::elide`. When hovered, the label will show the full text.",
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::truncate`. When hovered, the label will show the full text.",
)
.truncate(),
);

View File

@@ -63,7 +63,7 @@ impl super::View for Tooltips {
});
};
let disabled_tooltip_ui = |ui: &mut egui::Ui| {
ui.label("A fifferent tooltip when widget is disabled.");
ui.label("A different tooltip when widget is disabled.");
ui.horizontal(|ui| {
ui.label("This tooltip was created with");
ui.code(".on_disabled_hover_ui(…)");