This commit is contained in:
YgorSouza 2024-06-18 22:10:59 +02:00 committed by GitHub
parent 3cdb667cd6
commit ee3b04ea17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
//! Try the live web demo: <https://www.egui.rs/#demo>. Read more about egui at <https://github.com/emilk/egui>.
//!
//! `egui` is in heavy development, with each new version having breaking changes.
//! You need to have rust 1.62.0 or later to use `egui`.
//! You need to have rust 1.76.0 or later to use `egui`.
//!
//! To quickly get started with egui, you can take a look at [`eframe_template`](https://github.com/emilk/eframe_template)
//! which uses [`eframe`](https://docs.rs/eframe).

View File

@ -401,7 +401,7 @@ pub struct ScrollStyle {
/// When the user hovers the scroll bars they expand to [`Self::bar_width`].
pub floating_width: f32,
/// How much space i allocated for a floating scroll bar?
/// How much space is allocated for a floating scroll bar?
///
/// Normally this is zero, but you could set this to something small
/// like 4.0 and set [`Self::dormant_handle_opacity`] and
@ -499,7 +499,7 @@ impl ScrollStyle {
active_background_opacity: 1.0,
active_handle_opacity: 1.0,
// Be tranlucent when expanded so we can see the content
// Be translucent when expanded so we can see the content
interact_background_opacity: 0.6,
interact_handle_opacity: 0.6,
@ -652,7 +652,7 @@ pub struct Interaction {
/// Radius of the interactive area of the corner of a window during drag-to-resize.
pub resize_grab_radius_corner: f32,
/// If `false`, tooltips will show up anytime you hover anything, even is mouse is still moving
/// If `false`, tooltips will show up anytime you hover anything, even if mouse is still moving
pub show_tooltips_only_when_still: bool,
/// Delay in seconds before showing tooltips after the mouse stops moving
@ -2118,7 +2118,7 @@ impl HandleShape {
pub enum NumericColorSpace {
/// RGB is 0-255 in gamma space.
///
/// Alpha is 0-255 in linear space .
/// Alpha is 0-255 in linear space.
GammaByte,
/// 0-1 in linear space.

View File

@ -72,7 +72,7 @@ impl CursorRange {
}
/// If there is a selection, None is returned.
/// If the two ends is the same, that is returned.
/// If the two ends are the same, that is returned.
pub fn single(&self) -> Option<Cursor> {
if self.is_empty() {
Some(self.primary)
@ -98,7 +98,7 @@ impl CursorRange {
}
}
/// returns the two ends ordered
/// Returns the two ends ordered.
pub fn sorted_cursors(&self) -> [Cursor; 2] {
if self.is_sorted() {
[self.primary, self.secondary]

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(…)");