minor bug

This commit is contained in:
2025-09-05 00:25:02 -05:00
parent ddf5c377f6
commit d526cac08a
3 changed files with 22 additions and 6 deletions
+5
View File
@@ -22,6 +22,7 @@ impl UiExtensions for Ui {
pub trait ButtonExtensions<'a> {
fn red(atoms: impl IntoAtoms<'a>) -> Self;
fn green(text: impl Into<String>) -> Self;
fn blue(text: impl Into<String>) -> Self;
}
impl<'a> ButtonExtensions<'a> for Button<'a> {
@@ -32,4 +33,8 @@ impl<'a> ButtonExtensions<'a> for Button<'a> {
fn green(text: impl Into<String>) -> Self {
Self::new(RichText::new(text).color(Color32::WHITE)).fill(Color32::DARK_GREEN)
}
fn blue(text: impl Into<String>) -> Self {
Self::new(RichText::new(text).color(Color32::WHITE)).fill(Color32::DARK_BLUE)
}
}