Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow easier setting of background color for TextEdit #5203

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
bircni committed Oct 2, 2024
commit 4f95bc1320a5607f589cbb22a22c781b57768d5d
3 changes: 2 additions & 1 deletion crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ impl<'t> TextEdit<'t> {
self
}

/// Set the background color of the [`TextEdit`].
/// Set the background color of the [`TextEdit`]. The default is [`crate::Visuals::extreme_bg_color`].
// TODO: remove this once #3284 is implemented
#[inline]
pub fn background_color(mut self, color: Color32) -> Self {
self.background_color = Some(color);
Expand Down
Loading