Add UX enhancements: carousel, filter chips, command palette, and more
This commit is contained in:
@@ -50,7 +50,13 @@ pub fn show_drop_dialog(
|
||||
};
|
||||
|
||||
let body = if count == 1 {
|
||||
files[0].to_string_lossy().to_string()
|
||||
let path_str = files[0].to_string_lossy().to_string();
|
||||
let size = std::fs::metadata(&files[0]).map(|m| m.len()).unwrap_or(0);
|
||||
if size > 0 {
|
||||
format!("{}\n({})", path_str, super::widgets::format_size(size as i64))
|
||||
} else {
|
||||
path_str
|
||||
}
|
||||
} else {
|
||||
files
|
||||
.iter()
|
||||
@@ -87,9 +93,9 @@ pub fn show_drop_dialog(
|
||||
}
|
||||
|
||||
dialog.add_response("cancel", &i18n("Cancel"));
|
||||
dialog.add_response("keep-in-place", &i18n("Keep in place"));
|
||||
dialog.add_response("copy-only", &i18n("Copy to Applications"));
|
||||
dialog.add_response("copy-and-integrate", &i18n("Copy & add to menu"));
|
||||
dialog.add_response("keep-in-place", &i18n("Run Portable"));
|
||||
dialog.add_response("copy-only", &i18n("Copy to Apps"));
|
||||
dialog.add_response("copy-and-integrate", &i18n("Copy & Add to Launcher"));
|
||||
|
||||
dialog.set_response_appearance("copy-and-integrate", adw::ResponseAppearance::Suggested);
|
||||
dialog.set_default_response(Some("copy-and-integrate"));
|
||||
|
||||
Reference in New Issue
Block a user