Skip to content

Commit

Permalink
Update UI of bottom panel
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed Feb 3, 2024
1 parent bdb1139 commit 2ec1e00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ impl FileDialog {

ui.with_layout(egui::Layout::right_to_left(egui::Align::Min), |ui| {
let label = match &self.mode {
DialogMode::SelectDirectory | DialogMode::SelectFile => "Open",
DialogMode::SaveFile => "Save",
DialogMode::SelectDirectory | DialogMode::SelectFile => "🗀 Open",
DialogMode::SaveFile => "📥 Save",
};

if ui::button_sized_enabled_disabled(ui, BUTTON_SIZE, label, self.is_selection_valid())
Expand Down Expand Up @@ -561,7 +561,7 @@ impl FileDialog {
ui.add_space(ctx.style().spacing.item_spacing.y);

if ui
.add_sized(BUTTON_SIZE, egui::Button::new("Abort"))
.add_sized(BUTTON_SIZE, egui::Button::new("🚫 Cancel"))
.clicked()
{
self.cancel();
Expand Down

0 comments on commit 2ec1e00

Please sign in to comment.