Skip to content

Commit

Permalink
improvement: Improves labels and FileSourceWidgetMode display
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaz-Vieira committed Jul 9, 2024
1 parent 3e9763e commit 836a585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bioimg_gui/src/widgets/file_source_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl StatefulWidget for LocalFileSourceWidget{
}).inner;
if let Some(inner_widget) = inner_widget {
ui.horizontal(|ui|{
ui.label("Inner Path: ");
ui.strong("Inner Path: ");
inner_widget.draw_and_parse(ui, id.with("inner_widget".as_ptr()));
});
}
Expand All @@ -173,9 +173,10 @@ impl StatefulWidget for LocalFileSourceWidget{
}
}

#[derive(Default, PartialEq, Eq, strum::VariantArray, Clone, strum::Display)]
#[derive(Default, PartialEq, Eq, strum::VariantArray, Clone, strum::Display, strum::AsRefStr)]
pub enum FileSourceWidgetMode{
#[default]
#[strum(to_string = "Local File")]
Local,
Url,
}
Expand Down

0 comments on commit 836a585

Please sign in to comment.