Skip to content

Commit

Permalink
Add hint text for pattern fill dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
crumblingstatue committed Oct 16, 2024
1 parent e3bd19e commit 93c4b0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/dialogs/pattern_fill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ impl Dialog for PatternFillDialog {
ui.heading("No active selection");
return true;
};
let re = ui.text_edit_singleline(&mut self.pattern_string);
let re = ui.add(
egui::TextEdit::singleline(&mut self.pattern_string)
.hint_text("Hex pattern (e.g. `00 ff 00`)"),
);
if self.just_opened {
re.request_focus();
}
Expand Down

0 comments on commit 93c4b0a

Please sign in to comment.