feat(app): screen reader names, Tab inside file rows, focus hand-off, contrast
- Every focusable control has a translated automation name: list rows by file name, buttons with an icon and a label, filters, number boxes (and the text box inside them), progress bars, switches and lists. Avalonia 12.1 otherwise announces "Avalonia.Controls.StackPanel" or the row's view model. - Page titles are level-1 headings, section titles level 2; navigation and page are landmarks; update/notice banners and the update status are polite live regions; decorative logos are hidden from assistive technology. - RowTabNavigation: Tab moves through the controls of the focused list row, then leaves the list (ListBox is a single tab stop). - FocusHandOff: focus moves to Cancel when COMPUTE ALL / VERIFY ALL hides itself, and back; same for a row's run/stop buttons. - Number box spin buttons are no tab stops and hidden from screen readers; Up/Down change the value. - Colour-blind light palette: error, warning and info statuses reach 4.5:1. - Dialogs follow the UI scale and stay within the screen. - AccessibilityTests: names on every page in two languages, headings, Tab in rows, focus hand-off, WCAG contrast of every palette. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f9e2a82eec
commit
ec8489feb4
82 files changed
+1774
-72
No files matched your search
@@ -67,11 +67,23 @@
|
||||
<Style Selector="TextBlock.sectionTitle">
|
||||
<Setter Property="FontSize" Value="18" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
<!-- Page titles are level 1 (set on each page); screen readers can jump between these sections. -->
|
||||
<Setter Property="AutomationProperties.HeadingLevel" Value="2" />
|
||||
</Style>
|
||||
<Style Selector="Button.icon">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="Padding" Value="5" />
|
||||
</Style>
|
||||
|
||||
<!-- Number boxes: the text box inside, which takes the focus, carries the box's name. The spin buttons only repeat
|
||||
what Up/Down do in the box, so they are no tab stops and screen readers skip them (they read as "PathIcon"). -->
|
||||
<Style Selector="NumericUpDown /template/ TextBox">
|
||||
<Setter Property="AutomationProperties.Name" Value="{Binding $parent[NumericUpDown].(AutomationProperties.Name)}" />
|
||||
</Style>
|
||||
<Style Selector="ButtonSpinner /template/ RepeatButton">
|
||||
<Setter Property="KeyboardNavigation.IsTabStop" Value="False" />
|
||||
<Setter Property="AutomationProperties.AccessibilityView" Value="Raw" />
|
||||
</Style>
|
||||
</Application.Styles>
|
||||
|
||||
<Application.Resources>
|
||||
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>الإصدار {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>تصفية حسب الحالة</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>تصفية حسب الحجم</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>الملفات</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>التقدم</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>وحدة الحجم</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>قيمة الهاش</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Версия {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Филтриране по състояние</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Филтриране по размер</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлове</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Напредък</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Мерна единица за размер</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Стойност на хеша</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>সংস্করণ {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>অবস্থা অনুযায়ী ফিল্টার</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>সাইজ অনুযায়ী ফিল্টার</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ফাইল</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>অগ্রগতি</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>সাইজের একক</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>হ্যাশ মান</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Verzija {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtriraj po statusu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtriraj po veličini</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Datoteke</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Napredak</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Jedinica veličine</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Vrijednost heša</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Verze {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrovat podle stavu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrovat podle velikosti</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Soubory</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Průběh</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Jednotka velikosti</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hodnota hashe</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrér efter status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrér efter størrelse</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Filer</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Fremskridt</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Størrelsesenhed</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashværdi</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Nach Status filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Nach Größe filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Dateien</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Fortschritt</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Größeneinheit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashwert</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Nach Status filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Nach Grösse filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Dateien</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Fortschritt</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Grösseneinheit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashwert</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Nach Status filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Nach Größe filtern</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Dateien</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Fortschritt</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Größeneinheit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashwert</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>ވާޝަން {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>ހާލަތުން ފިލްޓަރުކުރޭ</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>ސައިޒުން ފިލްޓަރުކުރޭ</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ފައިލްތައް</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>ކުރިއެރުން</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>ސައިޒުގެ ޔުނިޓް</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ހޭޝްގެ އަގު</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -732,4 +732,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>ཐོན་རིམ་ {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>གནས་སྟངས་ལྟར་ ཚགས་མ་བཙགས།</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>ཚད་ལྟར་ ཚགས་མ་བཙགས།</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ཡིག་སྣོད་ཚུ།</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>ཡར་འཕེལ།</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>ཚད་ཀྱི་ ཚད་གཞི།</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ཧེ་ཤ་ གནས་གོང་།</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Έκδοση {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Φιλτράρισμα κατά κατάσταση</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Φιλτράρισμα κατά μέγεθος</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Αρχεία</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Πρόοδος</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Μονάδα μεγέθους</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Τιμή hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Έκδοση {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Φιλτράρισμα κατά κατάσταση</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Φιλτράρισμα κατά μέγεθος</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Αρχεία</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Πρόοδος</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Μονάδα μεγέθους</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Τιμή hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filter by status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filter by size</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Files</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progress</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Size unit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash value</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filter by status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filter by size</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Files</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progress</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Size unit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash value</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filter by status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filter by size</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Files</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progress</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Size unit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash value</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versión {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrar por estado</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrar por tamaño</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Archivos</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progreso</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unidad de tamaño</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valor hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versión {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrar por estado</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrar por tamaño</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Archivos</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progreso</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unidad de tamaño</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valor hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -732,4 +732,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versioon {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtreeri oleku järgi</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtreeri suuruse järgi</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Failid</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Edenemine</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Suuruse ühik</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Räsiväärtus</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>نسخه {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>فیلتر بر اساس وضعیت</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>فیلتر بر اساس اندازه</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>فایلها</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>پیشرفت</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>واحد اندازه</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>مقدار هش</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versio {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Suodata tilan mukaan</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Suodata koon mukaan</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Tiedostot</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Edistyminen</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Kokoyksikkö</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Tiivistearvo</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Bersyon {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>I-filter ayon sa status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>I-filter ayon sa laki</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Mga file</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progreso</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Yunit ng laki</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Halaga ng hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrer par état</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrer par taille</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Fichiers</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progression</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unité de taille</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valeur du hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>גרסה {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>סינון לפי מצב</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>סינון לפי גודל</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>קבצים</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>התקדמות</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>יחידת גודל</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ערך Hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>संस्करण {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>स्थिति के अनुसार फ़िल्टर करें</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>आकार के अनुसार फ़िल्टर करें</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>फाइलें</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>प्रगति</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>आकार की इकाई</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>हैश मान</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Verzija {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtriraj po statusu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtriraj po veličini</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Datoteke</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Napredak</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Jedinica veličine</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Vrijednost hasha</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -732,4 +732,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Verzió: {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Szűrés állapot szerint</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Szűrés méret szerint</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Fájlok</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Folyamat</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Méret mértékegysége</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash érték</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -732,4 +732,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versi {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filter menurut status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filter menurut ukuran</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Berkas</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Kemajuan</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Satuan ukuran</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Nilai hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Útgáfa {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Sía eftir stöðu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Sía eftir stærð</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Skrár</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Framvinda</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Stærðareining</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash-gildi</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versione {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtra per stato</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtra per dimensione</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>File</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Avanzamento</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unità di dimensione</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valore hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>バージョン {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>状態で絞り込み</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>サイズで絞り込み</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ファイル</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>進行状況</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>サイズの単位</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ハッシュ値</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Нұсқа {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Күйі бойынша сүзу</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Өлшемі бойынша сүзу</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлдар</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Барысы</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Өлшем бірлігі</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Хэш мәні</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>កំណែ {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>ត្រងតាមស្ថានភាព</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>ត្រងតាមទំហំ</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ឯកសារ</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>វឌ្ឍនភាព</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>ឯកតាទំហំ</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>តម្លៃ Hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>버전 {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>상태별 필터</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>크기별 필터</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>파일</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>진행률</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>크기 단위</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>해시 값</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Версия {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Абалы боюнча чыпкалоо</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Өлчөмү боюнча чыпкалоо</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлдар</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Жүрүшү</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Өлчөм бирдиги</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Хэш мааниси</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>ເວີຊັນ {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>ກັ່ນຕອງຕາມສະຖານະ</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>ກັ່ນຕອງຕາມຂະໜາດ</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ໄຟລ໌</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>ຄວາມຄືບໜ້າ</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>ຫົວໜ່ວຍຂະໜາດ</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ຄ່າ Hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versija {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtruoti pagal būseną</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtruoti pagal dydį</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Failai</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Eiga</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Dydžio vienetas</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash reikšmė</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versija {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrēt pēc statusa</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrēt pēc izmēra</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Faili</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progress</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Izmēra vienība</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash vērtība</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Верзија {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Филтрирај по статус</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Филтрирај по големина</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Датотеки</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Напредок</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Единица за големина</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Вредност на хешот</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Хувилбар {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Төлөвөөр шүүх</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Хэмжээгээр шүүх</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлууд</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Явц</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Хэмжээний нэгж</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Хэшийн утга</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versi {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Tapis mengikut status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Tapis mengikut saiz</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Fail</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Kemajuan</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unit saiz</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Nilai hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>ဗားရှင်း {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>အခြေအနေအလိုက် စစ်ထုတ်ရန်</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>အရွယ်အစားအလိုက် စစ်ထုတ်ရန်</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ဖိုင်များ</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>တိုးတက်မှု</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>အရွယ်အစား ယူနစ်</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash တန်ဖိုး</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versjon {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrer etter status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrer etter størrelse</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Filer</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Fremdrift</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Størrelsesenhet</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash-verdi</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>संस्करण {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>स्थितिअनुसार फिल्टर गर्नुहोस्</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>साइजअनुसार फिल्टर गर्नुहोस्</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>फाइलहरू</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>प्रगति</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>साइजको एकाइ</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ह्यास मान</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versie {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filteren op status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filteren op grootte</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Bestanden</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Voortgang</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Eenheid van grootte</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashwaarde</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versie {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filteren op status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filteren op grootte</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Bestanden</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Voortgang</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Eenheid van grootte</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashwaarde</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Wersja {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtruj według stanu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtruj według rozmiaru</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Pliki</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Postęp</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Jednostka rozmiaru</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Wartość hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>نسخه {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>د حالت له مخې فلټر</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>د اندازې له مخې فلټر</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>فایلونه</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>پرمختګ</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>د اندازې واحد</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>د هیش ارزښت</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versão {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrar por status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrar por tamanho</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Arquivos</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progresso</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unidade de tamanho</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valor do hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filter by status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filter by size</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Files</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progress</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Size unit</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash value</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versiunea {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrează după stare</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrează după dimensiune</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Fișiere</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Progres</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Unitate de dimensiune</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Valoare hash</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Версия {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Фильтр по состоянию</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Фильтр по размеру</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлы</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Ход выполнения</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Единица размера</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Значение хэша</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>අනුවාදය {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>තත්ත්වය අනුව පෙරන්න</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>ප්රමාණය අනුව පෙරන්න</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ගොනු</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>ප්රගතිය</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>ප්රමාණයේ ඒකකය</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash අගය</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Verzia {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrovať podľa stavu</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrovať podľa veľkosti</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Súbory</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Priebeh</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Jednotka veľkosti</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hodnota hashu</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Različica {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtriraj po stanju</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtriraj po velikosti</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Datoteke</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Napredek</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Enota velikosti</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Vrednost hasha</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Versioni {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtro sipas gjendjes</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtro sipas madhësisë</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Skedarët</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Përparimi</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Njësia e madhësisë</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Vlera e hash-it</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Верзија {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Филтрирај по статусу</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Филтрирај по величини</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Датотеке</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Напредак</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Јединица величине</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Вредност хеша</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Version {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Filtrera efter status</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Filtrera efter storlek</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Filer</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Förlopp</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Storleksenhet</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hashvärde</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Версияи {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Филтр аз рӯи ҳолат</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Филтр аз рӯи андоза</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файлҳо</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Пешрафт</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Воҳиди андоза</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Қимати ҳэш</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>เวอร์ชัน {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>กรองตามสถานะ</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>กรองตามขนาด</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>ไฟล์</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>ความคืบหน้า</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>หน่วยขนาด</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>ค่าแฮช</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Wersiýa {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Ýagdaýy boýunça süzgüçle</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Ölçegi boýunça süzgüçle</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Faýllar</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Ösüş</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Ölçeg birligi</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Heş bahasy</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Sürüm {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Duruma göre filtrele</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Boyuta göre filtrele</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Dosyalar</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>İlerleme</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Boyut birimi</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Hash değeri</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Версія {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Фільтр за станом</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Фільтр за розміром</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Файли</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Перебіг</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Одиниця розміру</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Значення хешу</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>Phiên bản {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>Lọc theo trạng thái</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>Lọc theo kích thước</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>Danh sách tệp</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>Tiến độ</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>Đơn vị kích thước</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>Giá trị băm</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>版本 {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>按状态筛选</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>按大小筛选</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>文件</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>进度</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>大小单位</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>哈希值</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>版本 {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>按状态筛选</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>按大小筛选</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>文件</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>进度</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>大小单位</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>哈希值</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -731,4 +731,22 @@
|
||||
<data name="About_Version" xml:space="preserve">
|
||||
<value>版本 {0}</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterStatus" xml:space="preserve">
|
||||
<value>依狀態篩選</value>
|
||||
</data>
|
||||
<data name="Lbl_FilterSize" xml:space="preserve">
|
||||
<value>依大小篩選</value>
|
||||
</data>
|
||||
<data name="Lbl_FileList" xml:space="preserve">
|
||||
<value>檔案</value>
|
||||
</data>
|
||||
<data name="Lbl_Progress" xml:space="preserve">
|
||||
<value>進度</value>
|
||||
</data>
|
||||
<data name="Lbl_SizeUnit" xml:space="preserve">
|
||||
<value>大小單位</value>
|
||||
</data>
|
||||
<data name="Lbl_HashValue" xml:space="preserve">
|
||||
<value>雜湊值</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
@@ -13,14 +14,14 @@ namespace HashTool.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Themed message box: keyboard friendly (Enter = primary button, Escape = cancel), follows the UI language's reading
|
||||
/// direction, scrolls long content and lets users select or copy the text.
|
||||
/// direction and the UI scale, scrolls long content and lets users select or copy the text.
|
||||
/// </summary>
|
||||
internal static class DialogWindow
|
||||
{
|
||||
public static async Task ShowAsync(Window? owner, LocalizationService localization, string title, string message,
|
||||
DialogIcon icon, string? details = null)
|
||||
DialogIcon icon, string? details = null, double scale = 1)
|
||||
{
|
||||
var (window, buttons) = Create(owner, localization, title, message, icon, details);
|
||||
var (window, buttons) = Create(owner, localization, title, message, icon, details, scale);
|
||||
var ok = Button(localization["Btn_OK"], isDefault: true, isCancel: true);
|
||||
ok.Click += (_, _) => window.Close();
|
||||
buttons.Children.Add(ok);
|
||||
@@ -28,9 +29,9 @@ internal static class DialogWindow
|
||||
}
|
||||
|
||||
public static async Task<bool> ConfirmAsync(Window? owner, LocalizationService localization, string title, string message,
|
||||
DialogIcon icon, string yesText, string noText)
|
||||
DialogIcon icon, string yesText, string noText, double scale = 1)
|
||||
{
|
||||
var (window, buttons) = Create(owner, localization, title, message, icon, null);
|
||||
var (window, buttons) = Create(owner, localization, title, message, icon, null, scale);
|
||||
var result = false;
|
||||
var yes = Button(yesText, isDefault: true, isCancel: false);
|
||||
var no = Button(noText, isDefault: false, isCancel: true);
|
||||
@@ -53,14 +54,24 @@ internal static class DialogWindow
|
||||
}
|
||||
|
||||
private static (Window Window, StackPanel Buttons) Create(Window? owner, LocalizationService localization, string title,
|
||||
string message, DialogIcon icon, string? details)
|
||||
string message, DialogIcon icon, string? details, double scale)
|
||||
{
|
||||
// The main window scales its content with a layout transform (Settings > UI scale); dialogs do the same, but stay
|
||||
// on the screen: the message scrolls when the height runs out.
|
||||
scale = double.IsFinite(scale) && scale > 0 ? scale : 1;
|
||||
var (width, maxHeight) = ((details is null ? 460 : 560) * scale, 640 * scale);
|
||||
if (owner?.Screens.ScreenFromWindow(owner) is { } screen)
|
||||
{
|
||||
width = Math.Min(width, screen.WorkingArea.Width / screen.Scaling * 0.9);
|
||||
maxHeight = Math.Min(maxHeight, screen.WorkingArea.Height / screen.Scaling * 0.9);
|
||||
}
|
||||
|
||||
var window = new Window
|
||||
{
|
||||
Title = title,
|
||||
WindowDecorations = WindowDecorations.None,
|
||||
Width = details is null ? 460 : 560,
|
||||
MaxHeight = 640,
|
||||
Width = width,
|
||||
MaxHeight = maxHeight,
|
||||
SizeToContent = SizeToContent.Height,
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner,
|
||||
CanResize = false,
|
||||
@@ -125,7 +136,7 @@ internal static class DialogWindow
|
||||
var frame = new Border { CornerRadius = new CornerRadius(10), BorderThickness = new Thickness(1), ClipToBounds = true, Child = layout };
|
||||
frame.Bind(Border.BackgroundProperty, window.GetResourceObservable("PaneBackgroundBrush"));
|
||||
frame.Bind(Border.BorderBrushProperty, window.GetResourceObservable("HighlightBrush"));
|
||||
window.Content = frame;
|
||||
window.Content = new LayoutTransformControl { LayoutTransform = new ScaleTransform(scale, scale), Child = frame };
|
||||
return (window, buttons);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,10 +27,11 @@ public static class ThemePalettes
|
||||
warning: "#FFFF00", info: "#00FFFF", muted: "#FFFFFF", secondary: "#FFFFFF")
|
||||
: Make("#FFFFFF", "#FFFFFF", "#000000", highlight: "#0000CC", success: "#006400", error: "#B00000",
|
||||
warning: "#7A4F00", info: "#00008B", muted: "#000000", secondary: "#000000"),
|
||||
// Okabe-Ito colours: distinguishable with every common form of colour blindness.
|
||||
// Okabe-Ito colours: distinguishable with every common form of colour blindness. On light backgrounds the
|
||||
// vermillion, yellow and reddish purple are darkened to reach 4.5:1 (WCAG AA) for status text.
|
||||
AppThemeStyle.Colorblind => isDark
|
||||
? Make("#121212", "#212529", null, success: "#56B4E9", error: "#E69F00", warning: "#F0E442", info: "#CC79A7")
|
||||
: Make("#F8F9FA", "#FFFFFF", null, success: "#0072B2", error: "#D55E00", warning: "#B8860B", info: "#CC79A7"),
|
||||
: Make("#F8F9FA", "#FFFFFF", null, success: "#0072B2", error: "#B34E00", warning: "#876200", info: "#A8487F"),
|
||||
AppThemeStyle.Retro => isDark ? Make("#282828", "#3C3836", null) : Make("#FBF1C7", "#EBDBB2", null),
|
||||
AppThemeStyle.Glassmorphism => isDark
|
||||
? Make("#99000000", "#991E1E1E", "#40FFFFFF")
|
||||
|
||||
@@ -80,18 +80,21 @@ public sealed class MainWindowAccessor
|
||||
public TopLevel? TopLevel => Window;
|
||||
}
|
||||
|
||||
public sealed class DialogService(MainWindowAccessor main, LocalizationService localization) : IDialogService
|
||||
public sealed class DialogService(MainWindowAccessor main, LocalizationService localization, FontService? fonts = null)
|
||||
: IDialogService
|
||||
{
|
||||
private double Scale => fonts?.UiScale ?? 1;
|
||||
|
||||
public Task ShowAsync(string title, string message, DialogIcon icon = DialogIcon.Information) =>
|
||||
DialogWindow.ShowAsync(main.Window, localization, title, message, icon);
|
||||
DialogWindow.ShowAsync(main.Window, localization, title, message, icon, scale: Scale);
|
||||
|
||||
public Task<bool> ConfirmAsync(string title, string message, DialogIcon icon = DialogIcon.Question, string? yesText = null,
|
||||
string? noText = null) =>
|
||||
DialogWindow.ConfirmAsync(main.Window, localization, title, message, icon, yesText ?? localization["Btn_Yes"],
|
||||
noText ?? localization["Btn_No"]);
|
||||
noText ?? localization["Btn_No"], Scale);
|
||||
|
||||
public Task ShowErrorAsync(string title, string message, string? details = null) =>
|
||||
DialogWindow.ShowAsync(main.Window, localization, title, message, DialogIcon.Error, details);
|
||||
DialogWindow.ShowAsync(main.Window, localization, title, message, DialogIcon.Error, details, Scale);
|
||||
}
|
||||
|
||||
public sealed class StorageService(MainWindowAccessor main) : IStorageService
|
||||
|
||||
@@ -19,11 +19,13 @@
|
||||
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" Padding="0,0,16,0">
|
||||
<StackPanel Spacing="16" Margin="0,0,0,20">
|
||||
<TextBlock Text="{Binding Localization[Title_About]}" FontSize="24" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Localization[Title_About]}" FontSize="24" FontWeight="Bold" AutomationProperties.HeadingLevel="1" />
|
||||
|
||||
<Border Classes="card">
|
||||
<Grid ColumnDefinitions="Auto,*">
|
||||
<Image Source="/Assets/logo_in_app.png" Width="80" Height="80" VerticalAlignment="Top" Margin="0,0,24,0" />
|
||||
<!-- Decorative: the app name is right next to it. -->
|
||||
<Image Source="/Assets/logo_in_app.png" Width="80" Height="80" VerticalAlignment="Top" Margin="0,0,24,0"
|
||||
AutomationProperties.AccessibilityView="Raw" />
|
||||
<StackPanel Grid.Column="1" Spacing="4">
|
||||
<TextBlock Text="{Binding AppName}" FontSize="24" FontWeight="Bold" />
|
||||
<SelectableTextBlock Text="{Binding VersionText}" Classes="secondary" />
|
||||
@@ -45,6 +47,12 @@
|
||||
<Button Classes="icon" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
|
||||
Command="{Binding $parent[UserControl].((vm:AboutViewModel)DataContext).OpenUrlCommand}"
|
||||
CommandParameter="{Binding Url}" ToolTip.Tip="{Binding Url}">
|
||||
<AutomationProperties.Name>
|
||||
<MultiBinding Converter="{StaticResource EnumLabelConverter}">
|
||||
<Binding />
|
||||
<Binding Path="$parent[UserControl].((vm:AboutViewModel)DataContext).Localization" />
|
||||
</MultiBinding>
|
||||
</AutomationProperties.Name>
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<TextBlock FontWeight="SemiBold" VerticalAlignment="Center">
|
||||
<TextBlock.Text>
|
||||
@@ -88,7 +96,7 @@
|
||||
</StackPanel>
|
||||
<Button Classes="icon" Margin="34,0,0,0" Command="{Binding OpenUrlCommand}" CommandParameter="{Binding GitHubProfile}"
|
||||
ToolTip.Tip="{Binding Localization[Tip_GitHubProfile]}"
|
||||
AutomationProperties.Name="{Binding Localization[Tip_GitHubProfile]}">
|
||||
AutomationProperties.Name="{Binding AuthorName}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="10">
|
||||
<icons:MaterialIcon Kind="Github" Width="24" Height="24" />
|
||||
<TextBlock Text="{Binding AuthorName}" VerticalAlignment="Center" FontWeight="Bold" />
|
||||
@@ -108,7 +116,8 @@
|
||||
<DataTemplate x:DataType="vm:LibraryItem">
|
||||
<Button Classes="icon" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
|
||||
Command="{Binding $parent[UserControl].((vm:AboutViewModel)DataContext).OpenUrlCommand}"
|
||||
CommandParameter="{Binding Url}" ToolTip.Tip="{Binding Url}">
|
||||
CommandParameter="{Binding Url}" ToolTip.Tip="{Binding Url}"
|
||||
AutomationProperties.Name="{Binding Name}">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<StackPanel Spacing="2">
|
||||
<TextBlock FontWeight="SemiBold">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,*">
|
||||
<Grid ColumnDefinitions="*,Auto" Margin="0,0,0,10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Localization[Title_CheckHash]}" FontSize="24" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Localization[Title_CheckHash]}" FontSize="24" FontWeight="Bold" AutomationProperties.HeadingLevel="1" />
|
||||
<TextBlock Text="{Binding Localization[Help_CheckHash]}" Classes="secondary" FontSize="12" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Spacing="2">
|
||||
@@ -30,9 +30,10 @@
|
||||
<ComboBox ItemsSource="{Binding Algorithms}" SelectedItem="{Binding DefaultAlgorithm}" MinWidth="130"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_DefaultAlgorithm]}" />
|
||||
</StackPanel>
|
||||
<Button Content="{Binding Localization[Btn_CheckAll]}" Classes="accent" Command="{Binding RunAllCommand}"
|
||||
IsVisible="{Binding !IsBusy}" ToolTip.Tip="Ctrl+Enter" />
|
||||
<Button Content="{Binding Localization[Btn_Cancel]}" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}" ToolTip.Tip="Esc" />
|
||||
<Button x:Name="RunAllButton" Content="{Binding Localization[Btn_CheckAll]}" Classes="accent" Command="{Binding RunAllCommand}"
|
||||
IsVisible="{Binding !IsBusy}" ToolTip.Tip="Ctrl+Enter" controls:FocusHandOff.Target="{Binding #CancelButton}" />
|
||||
<Button x:Name="CancelButton" Content="{Binding Localization[Btn_Cancel]}" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}"
|
||||
ToolTip.Tip="Esc" controls:FocusHandOff.Target="{Binding #RunAllButton}" />
|
||||
<TextBlock Text="{Binding RemainingText}" VerticalAlignment="Center" FontWeight="SemiBold" IsVisible="{Binding IsBusy}" />
|
||||
<Button Content="{Binding Localization[Btn_Clear]}" Command="{Binding ClearListCommand}" IsVisible="{Binding HasItems}" />
|
||||
<Button Content="{Binding Localization[Btn_ClearHashes]}" Command="{Binding ClearResultsCommand}" IsVisible="{Binding HasItems}" />
|
||||
@@ -44,7 +45,7 @@
|
||||
MaxWidth="420" HorizontalAlignment="Left" MinWidth="200"
|
||||
AutomationProperties.Name="{Binding Localization[Watermark_Search]}" />
|
||||
<ComboBox Grid.Column="1" ItemsSource="{Binding StatusFilterOptions}" SelectedItem="{Binding SelectedStatusFilter}"
|
||||
MinWidth="150" Margin="8,0,0,0">
|
||||
MinWidth="150" Margin="8,0,0,0" AutomationProperties.Name="{Binding Localization[Lbl_FilterStatus]}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock>
|
||||
@@ -59,7 +60,7 @@
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
<ComboBox Grid.Column="2" ItemsSource="{Binding SizeFilterOptions}" SelectedItem="{Binding SelectedSizeFilter}"
|
||||
MinWidth="170" Margin="8,0,0,0">
|
||||
MinWidth="170" Margin="8,0,0,0" AutomationProperties.Name="{Binding Localization[Lbl_FilterSize]}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock>
|
||||
@@ -76,7 +77,7 @@
|
||||
</Grid>
|
||||
|
||||
<ProgressBar Grid.Row="3" Minimum="0" Maximum="1" Value="{Binding ProgressValue}" IsVisible="{Binding IsBusy}"
|
||||
Height="4" Margin="0,0,0,8" />
|
||||
Height="4" Margin="0,0,0,8" AutomationProperties.Name="{Binding Localization[Lbl_Progress]}" />
|
||||
|
||||
<Panel Grid.Row="4" x:Name="DropArea" DragDrop.AllowDrop="True" Background="Transparent">
|
||||
<Border x:Name="DropHighlight" CornerRadius="8" BorderThickness="2" BorderBrush="{DynamicResource SystemAccentColor}"
|
||||
@@ -87,10 +88,17 @@
|
||||
<TextBlock Text="{Binding Localization[EmptyState_DropFiles]}" FontSize="16" HorizontalAlignment="Center" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
|
||||
<ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" Background="Transparent" IsVisible="{Binding HasItems}">
|
||||
<ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" Background="Transparent" IsVisible="{Binding HasItems}"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_FileList]}" controls:RowTabNavigation.IsEnabled="True">
|
||||
<ListBox.KeyBindings>
|
||||
<KeyBinding Gesture="Delete" Command="{Binding RemoveSelectedCommand}" />
|
||||
</ListBox.KeyBindings>
|
||||
<ListBox.Styles>
|
||||
<!-- Screen readers announce a row by its file name, not by the row's type. -->
|
||||
<Style Selector="ListBoxItem" x:DataType="vm:FileItem">
|
||||
<Setter Property="AutomationProperties.Name" Value="{Binding FileName}" />
|
||||
</Style>
|
||||
</ListBox.Styles>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:FileItem">
|
||||
<Grid ColumnDefinitions="3*,Auto,5*,2*,Auto" Margin="0,2">
|
||||
@@ -138,7 +146,7 @@
|
||||
</TextBox.IsVisible>
|
||||
</TextBox>
|
||||
<ProgressBar Minimum="0" Maximum="1" Value="{Binding Progress}" IsVisible="{Binding ShowProgress}"
|
||||
VerticalAlignment="Bottom" Height="3" />
|
||||
VerticalAlignment="Bottom" Height="3" AutomationProperties.Name="{Binding FileName}" />
|
||||
</Panel>
|
||||
<ToggleButton Grid.Column="1" IsChecked="{Binding IsRevealed}" Background="Transparent" Padding="4" Margin="2,0,0,0"
|
||||
IsVisible="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).IsHashMaskingEnabled}"
|
||||
@@ -173,14 +181,14 @@
|
||||
</TextBlock>
|
||||
|
||||
<StackPanel Grid.Column="4" Orientation="Horizontal" Spacing="2" VerticalAlignment="Center">
|
||||
<Button Classes="icon" Command="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding !IsProcessing}"
|
||||
<Button x:Name="RunButton" Classes="icon" Command="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding !IsProcessing}" controls:FocusHandOff.Target="{Binding #StopButton}"
|
||||
ToolTip.Tip="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).Localization[Tip_Verify]}"
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).Localization[Tip_Verify]}">
|
||||
<icons:MaterialIcon Kind="PlayCircleOutline" Width="18" Height="18" Foreground="{DynamicResource StatusSuccessBrush}" />
|
||||
</Button>
|
||||
<Button Classes="icon" Command="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding IsProcessing}"
|
||||
<Button x:Name="StopButton" Classes="icon" Command="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding IsProcessing}" controls:FocusHandOff.Target="{Binding #RunButton}"
|
||||
ToolTip.Tip="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).Localization[Tip_Stop]}"
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CheckHashViewModel)DataContext).Localization[Tip_Stop]}">
|
||||
<icons:MaterialIcon Kind="StopCircleOutline" Width="18" Height="18" Foreground="{DynamicResource StatusWarningBrush}" />
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<!-- Header -->
|
||||
<Grid ColumnDefinitions="*,Auto" Margin="0,0,0,10">
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Localization[Title_CreateHash]}" FontSize="24" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Localization[Title_CreateHash]}" FontSize="24" FontWeight="Bold" AutomationProperties.HeadingLevel="1" />
|
||||
<TextBlock Text="{Binding Localization[Help_CreateHash]}" Classes="secondary" FontSize="12" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Spacing="2">
|
||||
@@ -31,7 +31,7 @@
|
||||
<ComboBox ItemsSource="{Binding Algorithms}" SelectedItem="{Binding SelectedAlgorithm}" MinWidth="130"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_Algorithm]}" />
|
||||
</StackPanel>
|
||||
<Button IsVisible="{Binding HasItems}" IsEnabled="{Binding CanModify}">
|
||||
<Button IsVisible="{Binding HasItems}" IsEnabled="{Binding CanModify}" AutomationProperties.Name="{Binding Localization[Btn_Export]}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||
<icons:MaterialIcon Kind="Export" Width="16" Height="16" />
|
||||
<TextBlock Text="{Binding Localization[Btn_Export]}" />
|
||||
@@ -44,9 +44,10 @@
|
||||
</MenuFlyout>
|
||||
</Button.Flyout>
|
||||
</Button>
|
||||
<Button Content="{Binding Localization[Btn_CalcAll]}" Classes="accent" Command="{Binding RunAllCommand}"
|
||||
IsVisible="{Binding !IsBusy}" ToolTip.Tip="Ctrl+Enter" />
|
||||
<Button Content="{Binding Localization[Btn_Cancel]}" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}" ToolTip.Tip="Esc" />
|
||||
<Button x:Name="RunAllButton" Content="{Binding Localization[Btn_CalcAll]}" Classes="accent" Command="{Binding RunAllCommand}"
|
||||
IsVisible="{Binding !IsBusy}" ToolTip.Tip="Ctrl+Enter" controls:FocusHandOff.Target="{Binding #CancelButton}" />
|
||||
<Button x:Name="CancelButton" Content="{Binding Localization[Btn_Cancel]}" Command="{Binding CancelCommand}" IsVisible="{Binding IsBusy}"
|
||||
ToolTip.Tip="Esc" controls:FocusHandOff.Target="{Binding #RunAllButton}" />
|
||||
<TextBlock Text="{Binding RemainingText}" VerticalAlignment="Center" FontWeight="SemiBold" IsVisible="{Binding IsBusy}" />
|
||||
<Button Content="{Binding Localization[Btn_Clear]}" Command="{Binding ClearListCommand}" IsVisible="{Binding HasItems}" />
|
||||
<Button Content="{Binding Localization[Btn_ClearHashes]}" Command="{Binding ClearResultsCommand}" IsVisible="{Binding HasItems}" />
|
||||
@@ -59,7 +60,7 @@
|
||||
MaxWidth="420" HorizontalAlignment="Left" MinWidth="200"
|
||||
AutomationProperties.Name="{Binding Localization[Watermark_Search]}" />
|
||||
<ComboBox Grid.Column="1" ItemsSource="{Binding StatusFilterOptions}" SelectedItem="{Binding SelectedStatusFilter}"
|
||||
MinWidth="150" Margin="8,0,0,0">
|
||||
MinWidth="150" Margin="8,0,0,0" AutomationProperties.Name="{Binding Localization[Lbl_FilterStatus]}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock>
|
||||
@@ -74,7 +75,7 @@
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
<ComboBox Grid.Column="2" ItemsSource="{Binding SizeFilterOptions}" SelectedItem="{Binding SelectedSizeFilter}"
|
||||
MinWidth="170" Margin="8,0,0,0">
|
||||
MinWidth="170" Margin="8,0,0,0" AutomationProperties.Name="{Binding Localization[Lbl_FilterSize]}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock>
|
||||
@@ -91,7 +92,7 @@
|
||||
</Grid>
|
||||
|
||||
<ProgressBar Grid.Row="3" Minimum="0" Maximum="1" Value="{Binding ProgressValue}" IsVisible="{Binding IsBusy}"
|
||||
Height="4" Margin="0,0,0,8" />
|
||||
Height="4" Margin="0,0,0,8" AutomationProperties.Name="{Binding Localization[Lbl_Progress]}" />
|
||||
|
||||
<!-- The whole area accepts dropped files and folders. -->
|
||||
<Panel Grid.Row="4" x:Name="DropArea" DragDrop.AllowDrop="True" Background="Transparent">
|
||||
@@ -103,10 +104,17 @@
|
||||
<TextBlock Text="{Binding Localization[EmptyState_DropFiles]}" FontSize="16" HorizontalAlignment="Center" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
|
||||
<ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" Background="Transparent" IsVisible="{Binding HasItems}">
|
||||
<ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" Background="Transparent" IsVisible="{Binding HasItems}"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_FileList]}" controls:RowTabNavigation.IsEnabled="True">
|
||||
<ListBox.KeyBindings>
|
||||
<KeyBinding Gesture="Delete" Command="{Binding RemoveSelectedCommand}" />
|
||||
</ListBox.KeyBindings>
|
||||
<ListBox.Styles>
|
||||
<!-- Screen readers announce a row by its file name, not by the row's type. -->
|
||||
<Style Selector="ListBoxItem" x:DataType="vm:FileItem">
|
||||
<Setter Property="AutomationProperties.Name" Value="{Binding FileName}" />
|
||||
</Style>
|
||||
</ListBox.Styles>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:FileItem">
|
||||
<Grid ColumnDefinitions="3*,Auto,Auto,4*,2*,Auto" Margin="0,2">
|
||||
@@ -137,7 +145,8 @@
|
||||
<Grid Grid.Column="3" ColumnDefinitions="*,Auto,Auto" VerticalAlignment="Center" MinWidth="160">
|
||||
<Panel>
|
||||
<TextBox IsReadOnly="True" FontFamily="Consolas, Menlo, monospace" FontSize="11" BorderThickness="0"
|
||||
Background="Transparent" TextWrapping="NoWrap" IsVisible="{Binding !ShowProgress}">
|
||||
Background="Transparent" TextWrapping="NoWrap" IsVisible="{Binding !ShowProgress}"
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Lbl_HashValue]}">
|
||||
<TextBox.Text>
|
||||
<MultiBinding Converter="{StaticResource HashMaskConverter}">
|
||||
<Binding Path="ResultHash" />
|
||||
@@ -147,7 +156,7 @@
|
||||
</TextBox.Text>
|
||||
</TextBox>
|
||||
<ProgressBar Minimum="0" Maximum="1" Value="{Binding Progress}" IsVisible="{Binding ShowProgress}"
|
||||
VerticalAlignment="Center" Height="6" />
|
||||
VerticalAlignment="Center" Height="6" AutomationProperties.Name="{Binding FileName}" />
|
||||
</Panel>
|
||||
<ToggleButton Grid.Column="1" Classes="icon" IsChecked="{Binding IsRevealed}" Background="Transparent" Padding="4"
|
||||
IsVisible="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).IsHashMaskingEnabled}"
|
||||
@@ -189,14 +198,14 @@
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Dialog_SaveHash]}">
|
||||
<icons:MaterialIcon Kind="ContentSave" Width="18" Height="18" />
|
||||
</Button>
|
||||
<Button Classes="icon" Command="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding !IsProcessing}"
|
||||
<Button x:Name="RunButton" Classes="icon" Command="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding !IsProcessing}" controls:FocusHandOff.Target="{Binding #StopButton}"
|
||||
ToolTip.Tip="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Tip_Compute]}"
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Tip_Compute]}">
|
||||
<icons:MaterialIcon Kind="PlayCircleOutline" Width="18" Height="18" Foreground="{DynamicResource StatusSuccessBrush}" />
|
||||
</Button>
|
||||
<Button Classes="icon" Command="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding IsProcessing}"
|
||||
<Button x:Name="StopButton" Classes="icon" Command="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).RunItemCommand}"
|
||||
CommandParameter="{Binding}" IsVisible="{Binding IsProcessing}" controls:FocusHandOff.Target="{Binding #RunButton}"
|
||||
ToolTip.Tip="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Tip_Stop]}"
|
||||
AutomationProperties.Name="{Binding $parent[ListBox].((vm:CreateHashViewModel)DataContext).Localization[Tip_Stop]}">
|
||||
<icons:MaterialIcon Kind="StopCircleOutline" Width="18" Height="18" Foreground="{DynamicResource StatusWarningBrush}" />
|
||||
|
||||
@@ -9,14 +9,17 @@
|
||||
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<WrapPanel Margin="0,0,0,10" ItemSpacing="8" LineSpacing="8">
|
||||
<TextBlock Text="{Binding Localization[Dev_Console]}" FontSize="24" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,12,0" />
|
||||
<TextBlock Text="{Binding Localization[Dev_Console]}" FontSize="24" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,12,0"
|
||||
AutomationProperties.HeadingLevel="1" />
|
||||
<ComboBox ItemsSource="{Binding Levels}" SelectedItem="{Binding MinimumLevel}" MinWidth="130" VerticalAlignment="Center"
|
||||
AutomationProperties.Name="{Binding Localization[Dev_Level]}" ToolTip.Tip="{Binding Localization[Dev_Level]}" />
|
||||
<ToggleSwitch IsChecked="{Binding IsRecording}" VerticalAlignment="Center"
|
||||
OnContent="{Binding Localization[Dev_Recording]}" OffContent="{Binding Localization[Dev_Paused]}"
|
||||
ToolTip.Tip="{Binding Localization[Dev_ToolTip_Pause]}" />
|
||||
ToolTip.Tip="{Binding Localization[Dev_ToolTip_Pause]}"
|
||||
AutomationProperties.Name="{Binding Localization[Dev_Recording]}" />
|
||||
<ToggleSwitch IsChecked="{Binding AutoScroll}" VerticalAlignment="Center"
|
||||
OnContent="{Binding Localization[Dev_AutoScroll]}" OffContent="{Binding Localization[Dev_AutoScroll]}" />
|
||||
OnContent="{Binding Localization[Dev_AutoScroll]}" OffContent="{Binding Localization[Dev_AutoScroll]}"
|
||||
AutomationProperties.Name="{Binding Localization[Dev_AutoScroll]}" />
|
||||
<Button Classes="icon" Command="{Binding ClearCommand}" ToolTip.Tip="{Binding Localization[Dev_Clear]}"
|
||||
AutomationProperties.Name="{Binding Localization[Dev_Clear]}">
|
||||
<icons:MaterialIcon Kind="Broom" Width="20" Height="20" />
|
||||
@@ -37,7 +40,8 @@
|
||||
|
||||
<Border Grid.Row="1" Background="#1E1E1E" CornerRadius="6" Padding="6">
|
||||
<ListBox x:Name="LogList" ItemsSource="{Binding Entries}" Background="Transparent"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
AutomationProperties.Name="{Binding Localization[Dev_Console]}">
|
||||
<ListBox.Styles>
|
||||
<Style Selector="ListBoxItem">
|
||||
<Setter Property="Padding" Value="4,1" />
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Threading;
|
||||
|
||||
namespace HashTool.App.Views.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Moves keyboard focus to <see cref="TargetProperty"/> when the focused control hides itself, such as COMPUTE ALL turning
|
||||
/// into Cancel while a run starts, so keyboard and screen reader users keep their place instead of losing focus.
|
||||
/// </summary>
|
||||
public static class FocusHandOff
|
||||
{
|
||||
public static readonly AttachedProperty<Control?> TargetProperty =
|
||||
AvaloniaProperty.RegisterAttached<Control, Control?>("Target", typeof(FocusHandOff));
|
||||
|
||||
static FocusHandOff() => TargetProperty.Changed.AddClassHandler<Control>(OnTargetChanged);
|
||||
|
||||
public static Control? GetTarget(Control control) => control.GetValue(TargetProperty);
|
||||
|
||||
public static void SetTarget(Control control, Control? value) => control.SetValue(TargetProperty, value);
|
||||
|
||||
private static void OnTargetChanged(Control control, AvaloniaPropertyChangedEventArgs e)
|
||||
{
|
||||
control.RemoveHandler(InputElement.LostFocusEvent, OnLostFocus);
|
||||
if (e.NewValue is not null) control.AddHandler(InputElement.LostFocusEvent, OnLostFocus);
|
||||
}
|
||||
|
||||
private static void OnLostFocus(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
// Only when the control lost focus because it disappeared, not because the user moved on.
|
||||
if (sender is not Control control || !ReferenceEquals(e.Source, control) || control.IsEffectivelyVisible) return;
|
||||
if (GetTarget(control) is not { } target || TopLevel.GetTopLevel(control) is not { } topLevel) return;
|
||||
|
||||
// The target usually becomes visible in the same update, possibly after this control was hidden.
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
{
|
||||
var focused = topLevel.FocusManager?.GetFocusedElement();
|
||||
if ((focused is null || ReferenceEquals(focused, topLevel)) && ReferenceEquals(TopLevel.GetTopLevel(target), topLevel) &&
|
||||
target.IsEffectivelyVisible && target.IsEffectivelyEnabled)
|
||||
target.Focus(NavigationMethod.Tab);
|
||||
}, DispatcherPriority.Input);
|
||||
}
|
||||
}
|
||||
@@ -60,10 +60,11 @@
|
||||
|
||||
<SplitView IsPaneOpen="{Binding IsPaneOpen}" DisplayMode="Inline" OpenPaneLength="240" PaneBackground="Transparent">
|
||||
<SplitView.Pane>
|
||||
<Border Classes="card" Margin="12,36,12,16" Padding="0,10">
|
||||
<Border Classes="card" Margin="12,36,12,16" Padding="0,10" AutomationProperties.LandmarkType="Navigation">
|
||||
<Grid RowDefinitions="Auto,*,Auto">
|
||||
<StackPanel Orientation="Horizontal" Spacing="10" Margin="18,6,0,18">
|
||||
<Image Source="/Assets/logo_in_app.png" Width="30" Height="30" VerticalAlignment="Center" />
|
||||
<Image Source="/Assets/logo_in_app.png" Width="30" Height="30" VerticalAlignment="Center"
|
||||
AutomationProperties.AccessibilityView="Raw" />
|
||||
<TextBlock Text="{Binding Localization[AppTitle]}" FontSize="19" FontWeight="Bold" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
|
||||
@@ -128,19 +129,21 @@
|
||||
</SplitView.Pane>
|
||||
|
||||
<SplitView.Content>
|
||||
<Border Classes="card" Margin="0,36,16,16" Background="{DynamicResource AppBackgroundBrush}">
|
||||
<Border Classes="card" Margin="0,36,16,16" Background="{DynamicResource AppBackgroundBrush}" AutomationProperties.LandmarkType="Main">
|
||||
<DockPanel>
|
||||
<Border DockPanel.Dock="Top" Classes="banner" IsVisible="{Binding UpdateBannerText, Converter={x:Static ObjectConverters.IsNotNull}}">
|
||||
<Grid ColumnDefinitions="Auto,*,Auto">
|
||||
<icons:MaterialIcon Kind="Update" Width="20" Height="20" Margin="0,0,10,0" Foreground="{DynamicResource StatusInfoBrush}" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding UpdateBannerText}" VerticalAlignment="Center" TextWrapping="Wrap" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding UpdateBannerText}" VerticalAlignment="Center" TextWrapping="Wrap"
|
||||
AutomationProperties.LiveSetting="Polite" />
|
||||
<Button Grid.Column="2" Content="{Binding Localization[Btn_View]}" Command="{Binding ShowUpdateCommand}" IsEnabled="{Binding IsIdle}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border DockPanel.Dock="Top" Classes="banner" IsVisible="{Binding NoticeText, Converter={x:Static ObjectConverters.IsNotNull}}">
|
||||
<Grid ColumnDefinitions="Auto,*,Auto">
|
||||
<icons:MaterialIcon Kind="Alert" Width="20" Height="20" Margin="0,0,10,0" Foreground="{DynamicResource StatusWarningBrush}" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding NoticeText}" VerticalAlignment="Center" TextWrapping="Wrap" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding NoticeText}" VerticalAlignment="Center" TextWrapping="Wrap"
|
||||
AutomationProperties.LiveSetting="Polite" />
|
||||
<Button Grid.Column="2" Classes="icon" Command="{Binding DismissNoticeCommand}"
|
||||
ToolTip.Tip="{Binding Localization[Btn_Close]}"
|
||||
AutomationProperties.Name="{Binding Localization[Btn_Close]}">
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.VisualTree;
|
||||
|
||||
namespace HashTool.App.Views.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Lets Tab reach the buttons of a list row. A <see cref="ListBox"/> is a single tab stop (the arrow keys move between
|
||||
/// rows), so without this the controls inside a row only work with a mouse. Tab from a row, or from one of its controls,
|
||||
/// moves to the row's next control and leaves the list after the last one; Shift+Tab walks back to the row itself.
|
||||
/// </summary>
|
||||
public static class RowTabNavigation
|
||||
{
|
||||
public static readonly AttachedProperty<bool> IsEnabledProperty =
|
||||
AvaloniaProperty.RegisterAttached<ListBox, bool>("IsEnabled", typeof(RowTabNavigation));
|
||||
|
||||
static RowTabNavigation() => IsEnabledProperty.Changed.AddClassHandler<ListBox>(OnIsEnabledChanged);
|
||||
|
||||
public static bool GetIsEnabled(ListBox list) => list.GetValue(IsEnabledProperty);
|
||||
|
||||
public static void SetIsEnabled(ListBox list, bool value) => list.SetValue(IsEnabledProperty, value);
|
||||
|
||||
private static void OnIsEnabledChanged(ListBox list, AvaloniaPropertyChangedEventArgs e)
|
||||
{
|
||||
list.RemoveHandler(InputElement.KeyDownEvent, OnKeyDown);
|
||||
if (e.NewValue is true) list.AddHandler(InputElement.KeyDownEvent, OnKeyDown, RoutingStrategies.Bubble);
|
||||
}
|
||||
|
||||
private static void OnKeyDown(object? sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Handled || e.Key != Key.Tab || (e.KeyModifiers & ~KeyModifiers.Shift) != KeyModifiers.None) return;
|
||||
if (TopLevel.GetTopLevel(sender as Visual)?.FocusManager?.GetFocusedElement() is not Control focused) return;
|
||||
var row = focused as ListBoxItem ?? focused.FindAncestorOfType<ListBoxItem>();
|
||||
if (row is null) return;
|
||||
|
||||
var stops = TabStops(row);
|
||||
var index = stops.FindIndex(stop => stop == focused || stop.IsVisualAncestorOf(focused));
|
||||
Control? next;
|
||||
if (e.KeyModifiers.HasFlag(KeyModifiers.Shift))
|
||||
next = index switch
|
||||
{
|
||||
< 0 => null, // on the row itself: leave the list backwards as usual
|
||||
0 => row,
|
||||
_ => stops[index - 1]
|
||||
};
|
||||
else
|
||||
next = index + 1 < stops.Count ? stops[index + 1] : null; // after the last control: leave the list as usual
|
||||
|
||||
if (next is null) return;
|
||||
next.Focus(NavigationMethod.Tab, e.KeyModifiers);
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
/// <summary>The row's own controls that take keyboard focus, in layout order; not the parts inside their templates.</summary>
|
||||
private static List<Control> TabStops(ListBoxItem row) =>
|
||||
row.GetVisualDescendants().OfType<Control>()
|
||||
.Where(c => c.TemplatedParent is null && c.Focusable && c.IsEffectivelyVisible && c.IsEffectivelyEnabled &&
|
||||
KeyboardNavigation.GetIsTabStop(c))
|
||||
.ToList();
|
||||
}
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" Padding="0,0,16,0">
|
||||
<StackPanel Spacing="16" Margin="0,0,0,20">
|
||||
<TextBlock Text="{Binding Localization[Menu_Settings]}" FontSize="24" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Localization[Menu_Settings]}" FontSize="24" FontWeight="Bold" AutomationProperties.HeadingLevel="1" />
|
||||
|
||||
<!-- Language & appearance -->
|
||||
<Border Classes="card">
|
||||
@@ -117,9 +117,11 @@
|
||||
<TextBlock Classes="title" Text="{Binding Localization[Settings_Font]}" />
|
||||
<WrapPanel ItemSpacing="16" IsEnabled="{Binding CanEdit}">
|
||||
<ToggleSwitch IsChecked="{Binding Font.IsAutoFont}" IsEnabled="{Binding !Font.IsLockedFont}"
|
||||
OnContent="{Binding Localization[Settings_AutoFont]}" OffContent="{Binding Localization[Settings_AutoFont]}" />
|
||||
OnContent="{Binding Localization[Settings_AutoFont]}" OffContent="{Binding Localization[Settings_AutoFont]}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_AutoFont]}" />
|
||||
<ToggleSwitch IsChecked="{Binding Font.IsLockedFont}"
|
||||
OnContent="{Binding Localization[Settings_LockFont]}" OffContent="{Binding Localization[Settings_LockFont]}" />
|
||||
OnContent="{Binding Localization[Settings_LockFont]}" OffContent="{Binding Localization[Settings_LockFont]}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_LockFont]}" />
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
<ComboBox Grid.Column="1" Width="260" MaxDropDownHeight="360" VerticalAlignment="Top"
|
||||
@@ -218,9 +220,11 @@
|
||||
<ToggleSwitch IsChecked="{Binding IsFileSizeLimitEnabled}" OnContent="" OffContent=""
|
||||
AutomationProperties.Name="{Binding Localization[Settings_FileSizeLimit]}" />
|
||||
<NumericUpDown Width="150" Minimum="1" Maximum="1000000" Increment="1" FormatString="0.##"
|
||||
Value="{Binding FileSizeLimitValue}" IsEnabled="{Binding IsFileSizeLimitEnabled}" />
|
||||
Value="{Binding FileSizeLimitValue}" IsEnabled="{Binding IsFileSizeLimitEnabled}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_FileSizeLimit]}" />
|
||||
<ComboBox Width="90" ItemsSource="{Binding FileSizeUnits}" SelectedItem="{Binding FileSizeLimitUnit}"
|
||||
IsEnabled="{Binding IsFileSizeLimitEnabled}" />
|
||||
IsEnabled="{Binding IsFileSizeLimitEnabled}"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_SizeUnit]}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -233,7 +237,8 @@
|
||||
<ToggleSwitch IsChecked="{Binding IsFileTimeoutEnabled}" OnContent="" OffContent=""
|
||||
AutomationProperties.Name="{Binding Localization[Settings_FileTimeout]}" />
|
||||
<NumericUpDown Width="150" Minimum="10" Maximum="3600" Increment="10" FormatString="0"
|
||||
Value="{Binding FileTimeoutSeconds}" IsEnabled="{Binding IsFileTimeoutEnabled}" />
|
||||
Value="{Binding FileTimeoutSeconds}" IsEnabled="{Binding IsFileTimeoutEnabled}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_FileTimeout]}" />
|
||||
<TextBlock Text="{Binding Localization[Unit_Seconds]}" VerticalAlignment="Center" MinWidth="90" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
@@ -247,7 +252,8 @@
|
||||
<ToggleSwitch IsChecked="{Binding IsMaxFileCountEnabled}" OnContent="" OffContent=""
|
||||
AutomationProperties.Name="{Binding Localization[Settings_MaxFileCount]}" />
|
||||
<NumericUpDown Width="150" Minimum="1" Maximum="1000000" Increment="100" FormatString="0"
|
||||
Value="{Binding MaxFileCount}" IsEnabled="{Binding IsMaxFileCountEnabled}" />
|
||||
Value="{Binding MaxFileCount}" IsEnabled="{Binding IsMaxFileCountEnabled}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_MaxFileCount]}" />
|
||||
<Panel MinWidth="90" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
@@ -261,7 +267,8 @@
|
||||
<ToggleSwitch IsChecked="{Binding IsMaxFolderCountEnabled}" OnContent="" OffContent=""
|
||||
AutomationProperties.Name="{Binding Localization[Settings_MaxFolderCount]}" />
|
||||
<NumericUpDown Width="150" Minimum="1" Maximum="100" Increment="1" FormatString="0"
|
||||
Value="{Binding MaxFolderCount}" IsEnabled="{Binding IsMaxFolderCountEnabled}" />
|
||||
Value="{Binding MaxFolderCount}" IsEnabled="{Binding IsMaxFolderCountEnabled}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_MaxFolderCount]}" />
|
||||
<Panel MinWidth="90" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
@@ -386,7 +393,8 @@
|
||||
<TextBlock Classes="title" Text="{Binding Localization[Btn_RestartAdmin]}" />
|
||||
<TextBlock Classes="secondary" Text="{Binding Localization[Settings_RestartAdminDesc]}" />
|
||||
</StackPanel>
|
||||
<Button Grid.Column="1" Command="{Binding RestartElevatedCommand}">
|
||||
<Button Grid.Column="1" Command="{Binding RestartElevatedCommand}"
|
||||
AutomationProperties.Name="{Binding Localization[Btn_RestartAdmin]}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<icons:MaterialIcon Kind="ShieldAccount" Width="18" Height="18" />
|
||||
<TextBlock Text="{Binding Localization[Btn_RestartAdmin]}" />
|
||||
@@ -438,7 +446,8 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Spacing="8" HorizontalAlignment="Right">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right">
|
||||
<Button Command="{Binding OpenDataFolderCommand}">
|
||||
<Button Command="{Binding OpenDataFolderCommand}"
|
||||
AutomationProperties.Name="{Binding Localization[Settings_OpenDataFolder]}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<icons:MaterialIcon Kind="FolderOpen" Width="18" Height="18" />
|
||||
<TextBlock Text="{Binding Localization[Settings_OpenDataFolder]}" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" Padding="0,0,16,0">
|
||||
<StackPanel Spacing="16" Margin="0,0,0,20">
|
||||
<TextBlock Text="{Binding Localization[Title_Update]}" FontSize="24" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Localization[Title_Update]}" FontSize="24" FontWeight="Bold" AutomationProperties.HeadingLevel="1" />
|
||||
|
||||
<Border Classes="card">
|
||||
<StackPanel Spacing="16">
|
||||
@@ -15,25 +15,29 @@
|
||||
<icons:MaterialIcon Kind="InformationOutline" Width="24" Height="24" Margin="0,0,10,0"
|
||||
Foreground="{DynamicResource StatusInfoBrush}" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding CurrentVersionText}" FontSize="16" VerticalAlignment="Center" />
|
||||
<Button Grid.Column="2" Command="{Binding CheckCommand}" Classes="accent">
|
||||
<Button Grid.Column="2" Command="{Binding CheckCommand}" Classes="accent"
|
||||
AutomationProperties.Name="{Binding Localization[Btn_CheckNow]}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<icons:MaterialIcon Kind="CloudSync" Width="18" Height="18" IsVisible="{Binding !IsChecking}" />
|
||||
<ProgressBar IsIndeterminate="True" Width="18" MinWidth="18" Height="4" VerticalAlignment="Center"
|
||||
IsVisible="{Binding IsChecking}" />
|
||||
IsVisible="{Binding IsChecking}" AutomationProperties.Name="{Binding Localization[Status_Checking]}" />
|
||||
<TextBlock Text="{Binding Localization[Btn_CheckNow]}" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
<SelectableTextBlock Text="{Binding StatusText}" TextWrapping="Wrap" FontWeight="SemiBold" />
|
||||
<!-- Announced when it changes: "Checking for updates…", "Hash Tool x.y.z is available", errors. -->
|
||||
<SelectableTextBlock Text="{Binding StatusText}" TextWrapping="Wrap" FontWeight="SemiBold"
|
||||
AutomationProperties.LiveSetting="Polite" />
|
||||
|
||||
<StackPanel Spacing="8" IsVisible="{Binding IsDownloading}">
|
||||
<ProgressBar Minimum="0" Maximum="100" Value="{Binding DownloadProgress}" Height="8" />
|
||||
<ProgressBar Minimum="0" Maximum="100" Value="{Binding DownloadProgress}" Height="8"
|
||||
AutomationProperties.Name="{Binding Localization[Lbl_Progress]}" />
|
||||
<Button Content="{Binding Localization[Btn_Cancel]}" Command="{Binding CancelDownloadCommand}" HorizontalAlignment="Right" />
|
||||
</StackPanel>
|
||||
|
||||
<WrapPanel ItemSpacing="8" LineSpacing="8" IsVisible="{Binding CanInstall}">
|
||||
<Button Classes="accent" Command="{Binding InstallCommand}">
|
||||
<Button Classes="accent" Command="{Binding InstallCommand}" AutomationProperties.Name="{Binding Localization[Btn_Install]}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<icons:MaterialIcon Kind="Restart" Width="18" Height="18" />
|
||||
<TextBlock Text="{Binding Localization[Btn_Install]}" />
|
||||
|
||||
@@ -0,0 +1,288 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia;
|
||||
using Avalonia.Automation;
|
||||
using Avalonia.Automation.Peers;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Headless;
|
||||
using Avalonia.Headless.XUnit;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Threading;
|
||||
using Avalonia.VisualTree;
|
||||
using HashTool.App.Services;
|
||||
using HashTool.App.Services.Theme;
|
||||
using HashTool.App.ViewModels;
|
||||
using HashTool.App.Views;
|
||||
using HashTool.Core.Configuration;
|
||||
using HashTool.Core.Tests;
|
||||
using Xunit;
|
||||
|
||||
namespace HashTool.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// What screen readers and keyboard users get: every control has a real, translated name, Tab reaches the buttons of a
|
||||
/// file row, focus survives buttons that swap places, and text colours are readable on every theme.
|
||||
/// </summary>
|
||||
[Collection(SharedStateCollection.Name)]
|
||||
public sealed class AccessibilityTests
|
||||
{
|
||||
private static readonly string[] Pages = ["Create", "Check", "Settings", "Update", "About", "Developer"];
|
||||
|
||||
/// <summary>A shown main window with two files on Generate and Verify; cleans up after itself.</summary>
|
||||
private sealed class Screen : IAsyncDisposable
|
||||
{
|
||||
private readonly TempDirectory _temp = new();
|
||||
|
||||
public MainWindowViewModel Main { get; } = AppHost.Get<MainWindowViewModel>();
|
||||
public CreateHashViewModel Create { get; } = AppHost.Get<CreateHashViewModel>();
|
||||
public CheckHashViewModel Check { get; } = AppHost.Get<CheckHashViewModel>();
|
||||
public LocalizationService Localization { get; } = AppHost.Get<LocalizationService>();
|
||||
public MainWindow Window { get; private set; } = null!;
|
||||
|
||||
public static async Task<Screen> ShowAsync()
|
||||
{
|
||||
var screen = new Screen();
|
||||
await screen.Create.ClearListCommand.ExecuteAsync(null);
|
||||
await screen.Check.ClearListCommand.ExecuteAsync(null);
|
||||
string[] files = [screen._temp.File("alpha.txt", "123456789"), screen._temp.File("beta.txt", "abc")];
|
||||
await screen.Create.AddPathsAsync(files);
|
||||
await screen.Check.AddPathsAsync(files);
|
||||
screen.Window = new MainWindow { DataContext = screen.Main };
|
||||
screen.Window.Show();
|
||||
return screen;
|
||||
}
|
||||
|
||||
public void Navigate(string page)
|
||||
{
|
||||
Main.NavigateCommand.Execute(page);
|
||||
Settle();
|
||||
}
|
||||
|
||||
public void Settle()
|
||||
{
|
||||
Dispatcher.UIThread.RunJobs();
|
||||
Window.UpdateLayout();
|
||||
Dispatcher.UIThread.RunJobs();
|
||||
}
|
||||
|
||||
public IInputElement? Focused => Window.FocusManager?.GetFocusedElement();
|
||||
|
||||
public ListBox FileList() => Window.GetVisualDescendants().OfType<ListBox>().First(l => l.IsEffectivelyVisible);
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
Localization.SelectedLanguage = Localization.AvailableLanguages[0];
|
||||
Main.NavigateCommand.Execute("Create");
|
||||
Window.Close();
|
||||
await Create.ClearListCommand.ExecuteAsync(null);
|
||||
await Check.ClearListCommand.ExecuteAsync(null);
|
||||
_temp.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private static bool IsInteractive(Control control) =>
|
||||
control is Button or ToggleButton or ComboBox or TextBox or NumericUpDown or Slider or ListBox or ListBoxItem
|
||||
or ProgressBar;
|
||||
|
||||
/// <summary>
|
||||
/// Not empty, not an untranslated key, and not a type name a screen reader would read out, such as
|
||||
/// "Avalonia.Controls.StackPanel" for a button showing an icon and a label, or a row's view model.
|
||||
/// </summary>
|
||||
private static bool IsMeaningful(Control control, string? name) =>
|
||||
!string.IsNullOrWhiteSpace(name) &&
|
||||
!name.StartsWith("Avalonia.", StringComparison.Ordinal) &&
|
||||
name != (control as ContentControl)?.Content?.GetType().FullName &&
|
||||
name != control.DataContext?.GetType().FullName &&
|
||||
!(name.StartsWith('[') && name.EndsWith(']'));
|
||||
|
||||
private static string Describe(Control control)
|
||||
{
|
||||
var path = control.GetVisualAncestors().OfType<Control>().Select(c => c.GetType().Name).Take(4).Reverse();
|
||||
return $"{string.Join(" > ", path)} > {control.GetType().Name}";
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public async Task EveryControlHasATranslatedAccessibleName()
|
||||
{
|
||||
await using var screen = await Screen.ShowAsync();
|
||||
var problems = new List<string>();
|
||||
foreach (var code in new[] { "en-US", "vi-VN" })
|
||||
{
|
||||
screen.Localization.SelectedLanguage = screen.Localization.Find(code);
|
||||
foreach (var page in Pages)
|
||||
{
|
||||
screen.Navigate(page);
|
||||
// Parts of a control's template count when the keyboard reaches them (a NumericUpDown's text box) and
|
||||
// screen readers see them.
|
||||
var controls = screen.Window.GetVisualDescendants().OfType<Control>()
|
||||
.Where(c => IsInteractive(c) && (c.TemplatedParent is null ||
|
||||
(c.IsEffectivelyVisible && c.Focusable && KeyboardNavigation.GetIsTabStop(c) &&
|
||||
AutomationProperties.GetAccessibilityView(c) != AccessibilityView.Raw)));
|
||||
foreach (var control in controls)
|
||||
{
|
||||
var name = ControlAutomationPeer.CreatePeerForElement(control).GetName();
|
||||
if (!IsMeaningful(control, name)) problems.Add($"{code}/{page}: {Describe(control)} is named '{name}'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Assert.True(problems.Count == 0, string.Join(Environment.NewLine, problems));
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public async Task PageTitlesAndSectionsAreHeadings()
|
||||
{
|
||||
await using var screen = await Screen.ShowAsync();
|
||||
foreach (var page in Pages)
|
||||
{
|
||||
screen.Navigate(page);
|
||||
var headings = screen.Window.GetVisualDescendants().OfType<TextBlock>()
|
||||
.Where(t => t.IsEffectivelyVisible && ControlAutomationPeer.CreatePeerForElement(t).GetHeadingLevel() > 0)
|
||||
.ToList();
|
||||
Assert.True(headings.Count(t => ControlAutomationPeer.CreatePeerForElement(t).GetHeadingLevel() == 1) == 1,
|
||||
$"{page}: {headings.Count} headings");
|
||||
}
|
||||
}
|
||||
|
||||
[AvaloniaTheory]
|
||||
[InlineData("Create")]
|
||||
[InlineData("Check")]
|
||||
public async Task Tab_MovesThroughTheControlsOfTheFocusedRow(string page)
|
||||
{
|
||||
await using var screen = await Screen.ShowAsync();
|
||||
screen.Navigate(page);
|
||||
var list = screen.FileList();
|
||||
var row = Assert.IsType<ListBoxItem>(list.ContainerFromIndex(0));
|
||||
row.Focus(NavigationMethod.Tab);
|
||||
screen.Settle();
|
||||
|
||||
var visited = new List<Control>();
|
||||
for (var i = 0; i < 20; i++)
|
||||
{
|
||||
screen.Window.KeyPressQwerty(PhysicalKey.Tab, RawInputModifiers.None);
|
||||
screen.Window.KeyReleaseQwerty(PhysicalKey.Tab, RawInputModifiers.None);
|
||||
screen.Settle();
|
||||
if (screen.Focused is not Control focused || !row.IsVisualAncestorOf(focused)) break;
|
||||
visited.Add(focused);
|
||||
}
|
||||
|
||||
// Generate: algorithm, copy, save, compute, clear, remove. Verify: expected hash, browse, verify, clear, remove.
|
||||
Assert.True(visited.Count >= 4, $"Tab reached {visited.Count} controls of the row");
|
||||
Assert.Contains(visited, c => c is Button button && AutomationProperties.GetName(button) == screen.Localization["Tip_RemoveFile"]);
|
||||
Assert.False(screen.Focused is Control after && list.IsVisualAncestorOf(after), "Tab after the last control leaves the list");
|
||||
|
||||
// Shift+Tab walks back through the row to the row itself, and from there out of the list.
|
||||
void ShiftTab()
|
||||
{
|
||||
screen.Window.KeyPressQwerty(PhysicalKey.Tab, RawInputModifiers.Shift);
|
||||
screen.Window.KeyReleaseQwerty(PhysicalKey.Tab, RawInputModifiers.Shift);
|
||||
screen.Settle();
|
||||
}
|
||||
|
||||
visited[1].Focus(NavigationMethod.Tab);
|
||||
ShiftTab();
|
||||
Assert.Same(visited[0], screen.Focused);
|
||||
ShiftTab();
|
||||
Assert.Same(row, screen.Focused);
|
||||
ShiftTab();
|
||||
Assert.False(screen.Focused is Control before && list.IsVisualAncestorOf(before), "Shift+Tab from the row leaves the list");
|
||||
}
|
||||
|
||||
[AvaloniaTheory]
|
||||
[InlineData("Create")]
|
||||
[InlineData("Check")]
|
||||
public async Task Focus_MovesToCancel_WhenRunAllHidesItself(string page)
|
||||
{
|
||||
await using var screen = await Screen.ShowAsync();
|
||||
FileListViewModelBase list = page == "Create" ? screen.Create : screen.Check;
|
||||
screen.Navigate(page);
|
||||
var buttons = screen.Window.GetVisualDescendants().OfType<Button>().ToList();
|
||||
var runAll = buttons.Single(b => b.Command == list.RunAllCommand);
|
||||
var cancel = buttons.Single(b => b.Command == list.CancelCommand);
|
||||
runAll.Focus(NavigationMethod.Tab);
|
||||
|
||||
list.IsBusy = true;
|
||||
screen.Settle();
|
||||
Assert.Same(cancel, screen.Focused);
|
||||
|
||||
list.IsBusy = false;
|
||||
screen.Settle();
|
||||
Assert.Same(runAll, screen.Focused);
|
||||
|
||||
// Moving on by choice is left alone: hiding a control that no longer has focus moves nothing.
|
||||
var search = screen.Window.GetVisualDescendants().OfType<TextBox>().First(t => t.Name == "SearchBox");
|
||||
search.Focus(NavigationMethod.Tab);
|
||||
list.IsBusy = true;
|
||||
screen.Settle();
|
||||
Assert.Same(search, screen.Focused);
|
||||
list.IsBusy = false;
|
||||
}
|
||||
|
||||
private static Color Opaque(IBrush brush, Color under)
|
||||
{
|
||||
var color = ((ISolidColorBrush)brush).Color;
|
||||
var a = color.A / 255.0;
|
||||
return Color.FromRgb((byte)Math.Round(color.R * a + under.R * (1 - a)), (byte)Math.Round(color.G * a + under.G * (1 - a)),
|
||||
(byte)Math.Round(color.B * a + under.B * (1 - a)));
|
||||
}
|
||||
|
||||
private static double Luminance(Color color)
|
||||
{
|
||||
static double Channel(byte value)
|
||||
{
|
||||
var c = value / 255.0;
|
||||
return c <= 0.03928 ? c / 12.92 : Math.Pow((c + 0.055) / 1.055, 2.4);
|
||||
}
|
||||
|
||||
return 0.2126 * Channel(color.R) + 0.7152 * Channel(color.G) + 0.0722 * Channel(color.B);
|
||||
}
|
||||
|
||||
internal static double Contrast(Color a, Color b)
|
||||
{
|
||||
var (light, dark) = (Math.Max(Luminance(a), Luminance(b)), Math.Min(Luminance(a), Luminance(b)));
|
||||
return (light + 0.05) / (dark + 0.05);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
public void TextColoursReachWcagAA_OnEveryTheme(bool isDark)
|
||||
{
|
||||
// Status texts sit on the page (AppBackgroundBrush) and need 4.5:1; on cards, banners, dialogs and the navigation pane
|
||||
// (PaneBackgroundBrush) status colours only colour icons, which need 3:1. Secondary text appears on both.
|
||||
string[] status = ["StatusSuccessBrush", "StatusErrorBrush", "StatusWarningBrush", "StatusInfoBrush"];
|
||||
(string Text, string Background, double Minimum)[] pairs =
|
||||
[
|
||||
.. status.Select(key => (key, "AppBackgroundBrush", 4.5)),
|
||||
.. status.Select(key => (key, "PaneBackgroundBrush", 3.0)),
|
||||
("SecondaryTextBrush", "AppBackgroundBrush", 4.5),
|
||||
("SecondaryTextBrush", "PaneBackgroundBrush", 4.5)
|
||||
];
|
||||
var problems = new List<string>();
|
||||
foreach (var style in Enum.GetValues<AppThemeStyle>())
|
||||
{
|
||||
var palette = ThemePalettes.Get(style, isDark);
|
||||
var window = isDark ? Colors.Black : Colors.White;
|
||||
foreach (var (textKey, backgroundKey, minimum) in pairs)
|
||||
{
|
||||
var background = Opaque((IBrush)palette[backgroundKey], window);
|
||||
var ratio = Contrast(Opaque((IBrush)palette[textKey], background), background);
|
||||
if (ratio < minimum) problems.Add($"{style}/{(isDark ? "dark" : "light")}: {textKey} on {backgroundKey} is {ratio:0.00}:1");
|
||||
}
|
||||
}
|
||||
|
||||
Assert.True(problems.Count == 0, string.Join(Environment.NewLine, problems));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Contrast_FollowsTheWcagFormula()
|
||||
{
|
||||
Assert.Equal(21, Contrast(Colors.Black, Colors.White), 2);
|
||||
Assert.Equal(1, Contrast(Colors.Red, Colors.Red), 2);
|
||||
Assert.Equal(4.54, Contrast(Color.Parse("#767676"), Colors.White), 2);
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ using Avalonia.Headless.XUnit;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Input.Platform;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Threading;
|
||||
using Avalonia.VisualTree;
|
||||
using HashTool.App.Infrastructure;
|
||||
@@ -106,6 +107,31 @@ public sealed class DialogTests
|
||||
}
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public async Task Dialogs_FollowTheUiScale()
|
||||
{
|
||||
var owner = ShowOwner();
|
||||
try
|
||||
{
|
||||
var fonts = new FontService(TestServices.Loggers.CreateLogger<FontService>()) { UiScale = 1.5 };
|
||||
var service = new DialogService(new MainWindowAccessor(() => owner), L, fonts);
|
||||
var shown = service.ShowAsync("Scaled", "Message");
|
||||
var dialog = Dialog(owner);
|
||||
|
||||
Assert.Equal(690, dialog.Width);
|
||||
var transform = Assert.IsType<ScaleTransform>(Assert.IsType<LayoutTransformControl>(dialog.Content).LayoutTransform);
|
||||
Assert.Equal(1.5, transform.ScaleX);
|
||||
Assert.Equal(1.5, transform.ScaleY);
|
||||
|
||||
Click(ButtonOf(dialog, L["Btn_OK"]));
|
||||
await shown.WaitAsync(TimeSpan.FromSeconds(10), TestContext.Current.CancellationToken);
|
||||
}
|
||||
finally
|
||||
{
|
||||
owner.Close();
|
||||
}
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public async Task TheTitleBar_StartsMovingTheWindow()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user