mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Add TextEdit::password to hide input characters
This commit is contained in:
@@ -211,6 +211,7 @@ impl Font {
|
||||
slf.glyph_info(c);
|
||||
}
|
||||
slf.glyph_info('°');
|
||||
slf.glyph_info(crate::text::PASSWORD_REPLACEMENT_CHAR); // password replacement character
|
||||
|
||||
slf
|
||||
}
|
||||
|
||||
@@ -9,3 +9,6 @@ pub use {
|
||||
fonts::{FontDefinitions, FontFamily, Fonts, TextStyle},
|
||||
galley::{Galley, Row},
|
||||
};
|
||||
|
||||
/// Suggested character to use to replace those in password text fields.
|
||||
pub const PASSWORD_REPLACEMENT_CHAR: char = '•';
|
||||
|
||||
Reference in New Issue
Block a user