Image Selector Updates

merge-requests/173/head
_Neo_ 2025-10-25 17:12:45 +03:00
parent 0958796a29
commit 9e1ee169d9
2 changed files with 50 additions and 0 deletions

View File

@ -19068,6 +19068,31 @@
"zh_TW": "" "zh_TW": ""
} }
}, },
{
"ID": "LoadSupportedImageFormatDialogTitle",
"Translations": {
"ar_SA": "اختر تنسيق صورة مدعوم",
"de_DE": "Wählen Sie ein unterstütztes Bildformat",
"el_GR": "Επιλέξτε μια υποστηριζόμενη μορφή εικόνας",
"en_US": "Choose a supported image format",
"es_ES": "Elige un formato de imagen compatible",
"fr_FR": "Choisissez un format d'image pris en charge",
"he_IL": "בחר פורמט תמונה נתמך",
"it_IT": "Scegli un formato immagine supportato",
"ja_JP": "サポートされている画像フォーマットを選択",
"ko_KR": "지원되는 이미지 형식을 선택하세요",
"no_NO": "Velg et støttet bildeformat",
"pl_PL": "Wybierz obsługiwany format obrazu",
"pt_BR": "Escolha um formato de imagem compatível",
"ru_RU": "Выберите поддерживаемый формат изображения",
"sv_SE": "Välj ett stödjat bildformat",
"th_TH": "เลือกฟอร์แมตรูปภาพที่รองรับ",
"tr_TR": "Desteklenen bir resim formatı seçin",
"uk_UA": "Виберіть підтримуваний формат зображення",
"zh_CN": "选择一个支持的图片格式",
"zh_TW": "選擇一個支持的圖片格式"
}
},
{ {
"ID": "AllSupportedFormats", "ID": "AllSupportedFormats",
"Translations": { "Translations": {

View File

@ -64,6 +64,7 @@ namespace Ryujinx.Ava.UI.Views.User
{ {
IReadOnlyList<IStorageFile> result = await ((Window)this.GetVisualRoot()!).StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions IReadOnlyList<IStorageFile> result = await ((Window)this.GetVisualRoot()!).StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{ {
Title = LocaleManager.Instance[LocaleKeys.LoadSupportedImageFormatDialogTitle],
AllowMultiple = false, AllowMultiple = false,
FileTypeFilter = new List<FilePickerFileType> FileTypeFilter = new List<FilePickerFileType>
{ {
@ -73,6 +74,30 @@ namespace Ryujinx.Ava.UI.Views.User
AppleUniformTypeIdentifiers = ["public.jpeg", "public.png", "com.microsoft.bmp"], AppleUniformTypeIdentifiers = ["public.jpeg", "public.png", "com.microsoft.bmp"],
MimeTypes = ["image/jpeg", "image/png", "image/bmp"], MimeTypes = ["image/jpeg", "image/png", "image/bmp"],
}, },
new("JPG")
{
Patterns = ["*.jpg"],
AppleUniformTypeIdentifiers = ["public.jpeg"],
MimeTypes = ["image/jpeg"],
},
new("JPEG")
{
Patterns = ["*.jpeg"],
AppleUniformTypeIdentifiers = ["public.jpeg"],
MimeTypes = ["image/jpeg"],
},
new("PNG")
{
Patterns = ["*.png"],
AppleUniformTypeIdentifiers = ["public.png"],
MimeTypes = ["image/png"],
},
new("BMP")
{
Patterns = ["*.bmp"],
AppleUniformTypeIdentifiers = ["com.microsoft.bmp"],
MimeTypes = ["image/bmp"],
},
}, },
}); });