chore: cleanup (again)

This commit is contained in:
2025-01-09 14:54:06 +00:00
parent 85ef186048
commit 785e8dbd22
23 changed files with 74 additions and 57 deletions

View File

@ -37,7 +37,8 @@ impl Widget for NativeTextInput<'_> {
if let Some(hint_text) = self.hint_text {
editor = editor.hint_text(egui::RichText::new(hint_text).color(NEUTRAL_500));
}
let response = if self.frame {
if self.frame {
Frame::none()
.inner_margin(MARGIN_DEFAULT)
.fill(NEUTRAL_900)
@ -46,7 +47,6 @@ impl Widget for NativeTextInput<'_> {
.inner
} else {
ui.add(editor)
};
response
}
}
}