Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab2b93958e | ||
|
|
86848c004c | ||
|
|
ec8489feb4 | ||
|
|
f9e2a82eec | ||
|
|
b8826f542e | ||
|
|
8465c84f6e | ||
|
|
edfb1007bb | ||
|
|
46a3767f6e | ||
|
|
d1c85687ad | ||
|
|
469da888d7 |
No files matched your search
@@ -0,0 +1,93 @@
|
||||
name: Accessibility issue
|
||||
description: Something is hard or impossible to use with a keyboard, a screen reader, magnification, high contrast or other assistive technology.
|
||||
labels: [accessibility]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
Thanks for reporting this. You do not need to tell us about any disability; describing what gets in your way is
|
||||
enough. See [ACCESSIBILITY.md](https://github.com/poli0981/HashTool/blob/main/ACCESSIBILITY.md) for what is
|
||||
already known.
|
||||
- type: textarea
|
||||
id: barrier
|
||||
attributes:
|
||||
label: What gets in your way?
|
||||
description: What were you trying to do, what did you expect, and what happened instead?
|
||||
placeholder: "Example: With NVDA, the buttons on a file row are announced only as \"button\"."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
placeholder: |
|
||||
1. Open Verify Hash with the keyboard
|
||||
2. Press Tab until ...
|
||||
3. ...
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: severity
|
||||
attributes:
|
||||
label: How much does it affect you?
|
||||
options:
|
||||
- Critical - I cannot generate or verify a hash at all
|
||||
- High - it works only with a workaround or with great effort
|
||||
- Medium - annoying or inconsistent, but I can get it done
|
||||
- Low - minor or cosmetic
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: technology
|
||||
attributes:
|
||||
label: Assistive technology
|
||||
multiple: true
|
||||
options:
|
||||
- Keyboard only
|
||||
- Narrator
|
||||
- NVDA
|
||||
- JAWS
|
||||
- VoiceOver
|
||||
- Orca
|
||||
- Screen magnifier or zoom
|
||||
- System high contrast or contrast theme
|
||||
- Voice control or speech recognition
|
||||
- Switch access
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: technology-version
|
||||
attributes:
|
||||
label: Assistive technology version
|
||||
placeholder: "NVDA 2026.3"
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: Hash Tool version
|
||||
description: Shown on the About page, or `hashtool --version` for the command-line tool.
|
||||
placeholder: "1.2.3"
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: os
|
||||
attributes:
|
||||
label: Operating system
|
||||
options:
|
||||
- Windows 11
|
||||
- Windows 10
|
||||
- macOS (Apple silicon)
|
||||
- macOS (Intel)
|
||||
- Linux
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: settings
|
||||
attributes:
|
||||
label: Settings that may matter
|
||||
description: Language, theme style, light or dark, font size, UI scale, system text size or contrast settings.
|
||||
- type: textarea
|
||||
id: media
|
||||
attributes:
|
||||
label: Screenshots or recordings
|
||||
description: Optional. Drag files here; describe anything important that is only visible in them.
|
||||
@@ -11,4 +11,5 @@
|
||||
- [ ] `dotnet build HashTool.slnx -warnaserror` and `dotnet test --solution HashTool.slnx` pass
|
||||
- [ ] `dotnet format HashTool.slnx --verify-no-changes` passes
|
||||
- [ ] New or changed UI text is added to every language (`python -I eng/loc.py check` passes)
|
||||
- [ ] UI changes work with the keyboard alone, have translated names for screen readers and don't rely on colour alone ([ACCESSIBILITY.md](../ACCESSIBILITY.md#for-contributors))
|
||||
- [ ] User-visible changes are listed under `[Unreleased]` in CHANGELOG.md
|
||||
@@ -0,0 +1,50 @@
|
||||
name: CodeQL
|
||||
|
||||
# Advanced setup in place of CodeQL default setup, which never analyses Dependabot pull requests: the required
|
||||
# `Analyze (...)` checks never reported there, so they could not be merged. Same languages, build mode, default query
|
||||
# suite and `/language:` categories as default setup, so existing alerts carry over. Default setup must stay disabled
|
||||
# in the repository settings: while it is enabled, code scanning rejects this workflow's uploads.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
# Dependabot pull requests too: code scanning accepts uploads from pull_request runs despite their read-only token.
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: "17 3 * * 3"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: codeql-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
# Required checks of the main ruleset: keep the job names.
|
||||
name: Analyze (${{ matrix.language }})
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
actions: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [actions, csharp, python]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
# No build, for C# too: the extractor installs the SDK from global.json and restores the packages itself.
|
||||
- uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
build-mode: none
|
||||
|
||||
- uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
||||
with:
|
||||
category: "/language:${{ matrix.language }}"
|
||||
@@ -31,6 +31,6 @@ jobs:
|
||||
results_format: sarif
|
||||
publish_results: true
|
||||
|
||||
- uses: github/codeql-action/upload-sarif@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
|
||||
- uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 -color
|
||||
|
||||
- name: zizmor
|
||||
uses: zizmorcore/zizmor-action@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.1
|
||||
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
|
||||
with:
|
||||
version: 1.31.1
|
||||
config: .github/zizmor.yml
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
# Accessibility
|
||||
|
||||
**Last reviewed: November 2026 (Hash Tool 1.2.3)**
|
||||
|
||||
Hash Tool should work for everyone who needs to check a file: with a keyboard alone, with a screen reader, with large
|
||||
text or high contrast, and in their own language. This page describes what works today, what does not work yet, and how
|
||||
to report a problem.
|
||||
|
||||
## Goals
|
||||
|
||||
The target is [WCAG 2.2](https://www.w3.org/TR/WCAG22/) level AA, where it applies to a desktop app (see
|
||||
[WCAG2ICT](https://www.w3.org/TR/wcag2ict-22/) for how the guidelines map to non-web software) and where Avalonia, the UI
|
||||
framework, makes it possible. This is a goal, not a claim of conformance: no formal audit has been done.
|
||||
|
||||
Priorities, in this order:
|
||||
|
||||
1. Every feature works with the keyboard.
|
||||
2. Screen readers announce a sensible name and role for every control.
|
||||
3. Text is readable: contrast, text size and themes.
|
||||
4. The app speaks the user's language, including right-to-left languages.
|
||||
5. The `hashtool` command-line tool works in any terminal and with screen readers.
|
||||
|
||||
## What works today
|
||||
|
||||
### Desktop app
|
||||
|
||||
**Keyboard.** Tab and Shift+Tab move between controls, the arrow keys move between rows of a file list, and Enter or
|
||||
Space activates the focused control. In a file row, Tab moves through that row's controls (algorithm, hash, copy, save,
|
||||
run, clear, remove) and then leaves the list. When a run starts, focus moves from **COMPUTE ALL** / **VERIFY ALL** to
|
||||
**Cancel**, and back when it ends.
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| Ctrl+O (⌘+O on macOS) | Add files |
|
||||
| Ctrl+Shift+O (⌘+Shift+O) | Add a folder |
|
||||
| Ctrl+F (⌘+F) | Go to the search box |
|
||||
| Ctrl+Enter (⌘+Enter) | Compute or verify all |
|
||||
| Esc | Cancel the run; close a dialog |
|
||||
| Delete | Remove the selected row |
|
||||
| Enter, in a dialog | The highlighted button (OK, Yes) |
|
||||
|
||||
**Screen readers.** Every button, box, list and row has a translated name: icon buttons are named after their action
|
||||
("Copy Hash", "Remove File") and rows after their file name. Page titles and section titles are headings, and the
|
||||
navigation pane and the page are landmarks, so you can jump between them. The update and notice banners and the status
|
||||
on the Update page are announced when they change. After a run with several files, a summary dialog opens and takes the
|
||||
focus.
|
||||
|
||||
**Results in words, not only colour.** Every status is text: **VALID**, **MISMATCH!**, *Access denied*, *Timed out* and
|
||||
so on. Search matches are shown in bold as well as in colour.
|
||||
|
||||
**Seeing.** You can choose light, dark or the system setting, and eight styles including **High Contrast** and
|
||||
**Colour-blind** (Okabe–Ito colours). In every style, status text has a contrast of at least 4.5:1 and status icons at
|
||||
least 3:1; automated tests check this. Settings has the font, a font size from 10 to 32, and a UI scale from 0.8× to
|
||||
2.5× that also applies to dialogs.
|
||||
|
||||
**No mouse or drag and drop needed.** Everything you can drop has a button too: **Add Files…**, **Add Folder…**,
|
||||
**Open Checksum File…**, and **Browse** for the expected hash of a row. You can also paste the expected hash.
|
||||
|
||||
**Language.** The app comes in 67 languages, with right-to-left layouts for Arabic, Persian, Hebrew, Dhivehi and Pashto.
|
||||
It picks your system language automatically.
|
||||
|
||||
**Motion and sound.** The only animation is a 0.3-second colour fade when the theme changes. The app makes no sounds,
|
||||
and nothing flashes.
|
||||
|
||||
### Command-line tool
|
||||
|
||||
- Plain text: one line per file, with no colours, spinners or progress bars that redraw the line.
|
||||
- Exit codes: `0` everything OK, `1` a file failed or did not match, `2` usage error.
|
||||
- Output for other programs: `hashtool hash -f json` or `-f csv`.
|
||||
- `hashtool verify -q` prints only the problems.
|
||||
- Errors go to standard error, in the usual `hashtool: <file>: <reason>` form.
|
||||
- `hashtool <command> --help` explains each command. [docs/USAGE.md](docs/USAGE.md) lists every option.
|
||||
|
||||
## Supported environments
|
||||
|
||||
| Platform | Assistive technology | Status |
|
||||
|---|---|---|
|
||||
| Windows 10 and 11 | Keyboard only, Narrator | Tested by the maintainer with Hash Tool 1.2 (November 2026). The 1.2.3 fixes were checked with automated tests and with the UI Automation tree that screen readers read. |
|
||||
| Windows 10 and 11 | NVDA, JAWS | Expected to work, since they read the same UI Automation tree as Narrator. Not tested regularly; reports are welcome. |
|
||||
| macOS (Apple silicon and Intel) | VoiceOver | Not tested yet. Avalonia exposes the app to macOS accessibility. |
|
||||
| Linux (x64 AppImage) | Orca | Not tested yet. Avalonia's AT-SPI support is newer and may be incomplete. |
|
||||
| Any | Terminal with a screen reader or braille display | The command-line tool prints plain text. |
|
||||
|
||||
## Known limitations
|
||||
|
||||
These are known problems, with a workaround where one exists. Please report anything else.
|
||||
|
||||
- **Progress is not read aloud during a run.** Each row shows its status as text, and a run with several files ends
|
||||
with a summary dialog. After a single file, move to its row to hear the result.
|
||||
- **The app does not follow the system's contrast themes** (Windows contrast themes, macOS *Increase contrast*). Choose
|
||||
*Settings → Theme style → High Contrast*. Standard controls such as buttons and the focus rectangle keep the colours
|
||||
of the Fluent theme.
|
||||
- **The app does not follow the system text size.** Use *Font size* and *UI scale* in Settings.
|
||||
- **There is no "reduce motion" setting.** The only animation is the theme colour fade.
|
||||
- **The Developer console uses fixed colours** (light text on a dark background) in every theme.
|
||||
- **The Glassmorphism style and the translucent window background** (Windows and macOS) depend on what is behind the
|
||||
window. Pick another style if text is hard to read.
|
||||
- **Tooltips appear on mouse hover only.** On Verify, the computed hash is only in the tooltip of the status; Generate
|
||||
shows it in a text box you can focus and copy.
|
||||
- **Dialogs cannot be moved with the keyboard.** They open centred over the main window.
|
||||
- **Hashes and paths are not forced left-to-right** in right-to-left layouts, so they may be displayed in the wrong
|
||||
direction.
|
||||
- **Shortcuts in tooltips say Ctrl on macOS too.** Use ⌘.
|
||||
- **Most translations were made with AI assistance**, including the names screen readers announce. Corrections from
|
||||
native speakers are welcome.
|
||||
- **The command-line tool is in English only.**
|
||||
- **VoiceOver and Orca have not been tested.**
|
||||
|
||||
## Reporting an accessibility problem
|
||||
|
||||
Open an issue with the
|
||||
[Accessibility issue form](https://github.com/poli0981/HashTool/issues/new?template=accessibility.yml). If the form is
|
||||
hard to use, a plain issue or a post in [Discussions](https://github.com/poli0981/HashTool/discussions) is fine too.
|
||||
|
||||
Helpful details:
|
||||
|
||||
- what you were trying to do, what you expected and what happened;
|
||||
- the assistive technology and its version (for example NVDA 2026.3, or "keyboard only");
|
||||
- your operating system and the Hash Tool version (shown on the About page);
|
||||
- the steps to get there. A screenshot or recording helps but is optional.
|
||||
|
||||
You do not need to tell me about any disability. Security problems go through [SECURITY.md](SECURITY.md) instead.
|
||||
|
||||
### Severity
|
||||
|
||||
| Severity | Meaning | Example |
|
||||
|---|---|---|
|
||||
| Critical | You cannot generate or verify a hash at all. | A screen reader cannot reach **COMPUTE ALL**. |
|
||||
| High | A task works only with a workaround or with great effort. | A setting can only be changed with the mouse. |
|
||||
| Medium | Annoying or inconsistent, but you can get it done. | A button is announced with the wrong name. |
|
||||
| Low | Minor or cosmetic. | A heading level is off. |
|
||||
|
||||
### What happens next
|
||||
|
||||
Hash Tool is maintained by one person, so there is no fixed response time. I read every report and reply as soon as I
|
||||
can. Critical and High problems come before new features; if a fix takes a while, I will suggest a workaround. Fixes are
|
||||
listed in [CHANGELOG.md](CHANGELOG.md) and the release notes, with credit if you would like it. If you are willing, I may
|
||||
ask you to try a fix before it is released.
|
||||
|
||||
## For contributors
|
||||
|
||||
When you change the UI:
|
||||
|
||||
- Give every control that takes focus a translated name: `AutomationProperties.Name="{Binding Localization[Key]}"`.
|
||||
This matters for icon buttons and for buttons whose content is a panel, which Avalonia otherwise announces by the
|
||||
panel's type name ("Avalonia.Controls.StackPanel").
|
||||
- Make new controls reachable with Tab and usable with Enter, Space and the arrow keys. A control that hides itself
|
||||
while focused hands the focus on with `controls:FocusHandOff.Target`; lists with controls in their rows use
|
||||
`controls:RowTabNavigation.IsEnabled`.
|
||||
- Never use colour as the only signal. New colours in `ThemePalettes` keep 4.5:1 for text and 3:1 for icons.
|
||||
- Page titles use `AutomationProperties.HeadingLevel="1"`; section titles use the `sectionTitle` class.
|
||||
- Add new text to every language with `python -I eng/loc.py set` (see [CONTRIBUTING.md](CONTRIBUTING.md)).
|
||||
|
||||
Testing:
|
||||
|
||||
- **Automated:** `tests/HashTool.App.Tests/AccessibilityTests.cs` checks names on every page in two languages, headings,
|
||||
Tab inside file rows, focus when buttons swap, and the contrast of every theme. CI runs it on Windows, macOS and Linux.
|
||||
- **By hand, for UI changes:** one pass with the keyboard only, a quick check with a screen reader (Narrator:
|
||||
Win+Ctrl+Enter; VoiceOver: ⌘+F5; Orca on Linux), UI scale 2.0, and the High Contrast style.
|
||||
[Accessibility Insights for Windows](https://accessibilityinsights.io/docs/windows/overview/) shows what screen
|
||||
readers see.
|
||||
|
||||
## Ownership and review
|
||||
|
||||
The maintainer, [poli0981](https://github.com/poli0981), is responsible for accessibility: triaging reports, keeping
|
||||
this page up to date, and checking new releases. This statement is reviewed with every minor release and whenever a
|
||||
report changes it.
|
||||
|
||||
## Feedback
|
||||
|
||||
Suggestions about this statement or these practices are welcome as an issue or a pull request. If something blocks you
|
||||
right now, use [Reporting an accessibility problem](#reporting-an-accessibility-problem).
|
||||
|
||||
This statement follows the
|
||||
[Open Source Accessibility Toolkit template](https://github.com/open-source-accessibility/accessibility-toolkit/blob/main/ACCESSIBILITY.md)
|
||||
and the [accessibility best practices](https://opensource.guide/accessibility-best-practices-for-your-project/) of Open
|
||||
Source Guides.
|
||||
|
||||
© 2026 poli0981. All rights reserved.
|
||||
@@ -2,6 +2,35 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.2.3] - 2026-11-09
|
||||
|
||||
An accessibility update: Hash Tool now works better with screen readers and the keyboard alone, and its accessibility is documented.
|
||||
|
||||
### Added
|
||||
- `ACCESSIBILITY.md` in the repository: what works with keyboards, screen readers and other assistive technology, known limitations, and how to report a problem — with a new *Accessibility issue* form.
|
||||
- Page and section titles are headings, and the navigation pane and the page are landmarks, so screen reader users can jump between them. Update and notice banners are announced when they change.
|
||||
|
||||
### Fixed
|
||||
- Screen readers announce every control by a translated name. Before, rows of the file lists were read as "HashTool.App.ViewModels.FileItem", buttons with an icon and a label (Export, Check Now, Install, Restart as Administrator, Open Data Folder, the links on About) as "Avalonia.Controls.StackPanel", the arrows of number boxes as "PathIcon", and the filters, number boxes, progress bars and several switches had no name.
|
||||
- Tab now reaches the controls of a file row (algorithm, hash, copy, save, run, clear, remove) and then leaves the list; before, they could only be used with a mouse. The arrows of number boxes are no longer extra tab stops; Up/Down change the value.
|
||||
- Keyboard focus moves to **Cancel** when **COMPUTE ALL** / **VERIFY ALL** starts a run, and back when the run ends, instead of getting lost.
|
||||
- The light variant of the colour-blind theme shows error, warning and in-progress statuses with enough contrast (at least 4.5:1).
|
||||
- Dialogs follow the UI scale set in Settings.
|
||||
|
||||
---
|
||||
|
||||
## [1.2.2] - 2026-10-26
|
||||
|
||||
A security update: the app and the command-line tool now ship with the .NET 10.0.14 runtime.
|
||||
|
||||
### Security
|
||||
- Updated to the .NET 10.0.14 runtime (out-of-band security release with fixes for the Brotli decoder, CVE-2026-111497, and network sockets, CVE-2026-70197), which the self-contained downloads include.
|
||||
|
||||
### Changed
|
||||
- Updated Microsoft.Extensions and System.IO.Hashing to 10.0.14, System.CommandLine to 2.0.14, and the code analyzers and CI actions (CodeQL, zizmor) to their latest versions.
|
||||
|
||||
---
|
||||
|
||||
## [1.2.1] - 2026-10-25
|
||||
|
||||
A small maintenance release: two fixes found while adding several hundred tests, and code analysis on every change.
|
||||
|
||||
@@ -33,6 +33,11 @@ Run the app or smoke test with `HASHTOOL_DATA_DIR` pointing at a scratch folder
|
||||
- Every UI string goes through `Localization[Key]` / `L["Key"]` and must exist in all 67 resx files; add keys with
|
||||
`eng/loc.py set` (JSON `{culture: {key: value}}`, `"neutral"` = English). App.Tests fail on missing, unused or
|
||||
mismatched keys. Keep "Hash Tool" untranslated inside sentences.
|
||||
- Accessibility (ACCESSIBILITY.md): every focusable control needs a translated name — `AutomationProperties.Name` on
|
||||
icon buttons and on buttons whose content is a panel (Avalonia announces the panel's type name otherwise); rows of
|
||||
lists get `controls:RowTabNavigation.IsEnabled`, buttons that swap places `controls:FocusHandOff.Target`; palette text
|
||||
colours ≥ 4.5:1, icon colours ≥ 3:1. `AccessibilityTests` enforce this; the UI Automation tree of a running app is the
|
||||
real check (Windows PowerShell 5.1 + `UIAutomationClient`).
|
||||
- Core is UI-free and AOT/trim compatible: no reflection-based JSON (use the source-generated contexts), keep
|
||||
`ConfigureAwait(false)` (Meziantou MA0004 is on for Core and CLI, off for App/tests).
|
||||
- Culture: use invariant formatting for logs, file names and machine-readable output; the UI uses the selected culture.
|
||||
@@ -55,3 +60,6 @@ Run the app or smoke test with `HASHTOOL_DATA_DIR` pointing at a scratch folder
|
||||
- `sonarcloud.yml` — SonarCloud CI analysis (Automatic Analysis is off; project `poli0981_HashTool`): scanner build,
|
||||
Cobertura coverage from the tests and the smoke test (`dotnet-coverage`), "Sonar way" gate on new code. Skipped when
|
||||
`SONAR_TOKEN` isn't available (forks, Dependabot). Issues and hotspots can't be resolved from here; fix them in code.
|
||||
- `codeql.yml` — CodeQL advanced setup, mirroring default setup (actions, csharp, python; build mode none; default
|
||||
suite; `/language:` categories) but also analysing Dependabot pull requests. The `Analyze (…)` job names are required
|
||||
checks. Default setup must stay off: while it is on, it rejects uploads from workflows.
|
||||
+8
-2
@@ -7,14 +7,14 @@ This project is still small and solo-maintained, so keep it simple and direct
|
||||
|
||||
## Reporting bugs or requesting features
|
||||
|
||||
Open an [issue](https://github.com/poli0981/HashTool/issues/new/choose) and pick **Bug report** or **Feature request** — the form asks for what's needed (version, OS, steps, logs).
|
||||
Open an [issue](https://github.com/poli0981/HashTool/issues/new/choose) and pick **Bug report**, **Feature request** or **Accessibility issue** — the form asks for what's needed (version, OS, steps, logs).
|
||||
Questions and ideas are welcome in [Discussions](https://github.com/poli0981/HashTool/discussions).
|
||||
|
||||
Security problems: please **don't** open a public issue — see [SECURITY.md](SECURITY.md).
|
||||
|
||||
## Building and testing
|
||||
|
||||
You need the [.NET 10 SDK](https://dotnet.microsoft.com/download) (10.0.400 or newer) — `global.json` picks it up. Python 3 is only needed for the translation tool.
|
||||
You need the [.NET 10 SDK](https://dotnet.microsoft.com/download) (10.0.403 or newer) — `global.json` picks it up. Python 3 is only needed for the translation tool.
|
||||
|
||||
```text
|
||||
dotnet build HashTool.slnx -warnaserror # what CI runs; warnings are errors
|
||||
@@ -51,6 +51,12 @@ python -I eng/loc.py set changes.json # {"vi-vn": {"Key": "text"}, "neutral
|
||||
|
||||
New text needs a key in **every** file — the localization tests fail otherwise. Keep placeholders such as `{0}` exactly, and keep the product name "Hash Tool". Corrections from native speakers are very welcome; most translations were made with AI assistance.
|
||||
|
||||
## Accessibility
|
||||
|
||||
UI changes must keep the app usable with the keyboard alone and with screen readers: translated names for controls,
|
||||
Tab reaching every control, no colour-only signals, and readable contrast. [ACCESSIBILITY.md](ACCESSIBILITY.md) has the
|
||||
checklist, the automated tests that enforce it and how to check by hand.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
Please be respectful — see [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for details.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
|
||||
<!-- Single source of truth for the product version (the release workflow also passes -p:Version=<tag>). -->
|
||||
<Version>1.2.1</Version>
|
||||
<Version>1.2.3</Version>
|
||||
<Authors>poli0981</Authors>
|
||||
<Company>poli0981</Company>
|
||||
<Product>Hash Tool</Product>
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
<ItemGroup Label="Application">
|
||||
<PackageVersion Include="Blake3" Version="3.0.2" />
|
||||
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.2" />
|
||||
<PackageVersion Include="System.CommandLine" Version="2.0.13" />
|
||||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.13" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.13" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.13" />
|
||||
<PackageVersion Include="System.IO.Hashing" Version="10.0.13" />
|
||||
<PackageVersion Include="System.CommandLine" Version="2.0.14" />
|
||||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.14" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.14" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.14" />
|
||||
<PackageVersion Include="System.IO.Hashing" Version="10.0.14" />
|
||||
<PackageVersion Include="Velopack" Version="1.2.161" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Analyzers">
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.303" />
|
||||
<PackageVersion Include="ReferenceTrimmer" Version="3.5.9" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.317" />
|
||||
<PackageVersion Include="ReferenceTrimmer" Version="3.5.13" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Tests">
|
||||
|
||||
@@ -57,6 +57,8 @@ More: [About](docs/images/about.png) · [Update](docs/images/update.png) · [Dev
|
||||
- **System integration**: Explorer right-click menu on Windows (optional), "Open With" on macOS, `--create`/`--verify` command-line arguments.
|
||||
- Automatic update check (at most once a day, can be turned off) with release notes; updates install in place.
|
||||
- Developer console with live logs.
|
||||
- **Accessible**: works with the keyboard alone and with screen readers, statuses in words rather than colour alone,
|
||||
and readable contrast in every theme — see [ACCESSIBILITY.md](ACCESSIBILITY.md).
|
||||
|
||||
> Hashing speed depends mostly on your drive (SSD vs HDD) and system load. Turn on *Optimize for hard drives* in Settings for spinning disks and network shares.
|
||||
|
||||
@@ -103,7 +105,7 @@ gh attestation verify HashTool-win-Setup.exe --repo poli0981/HashTool
|
||||
|
||||
## Building from source
|
||||
|
||||
Requires the [.NET 10 SDK](https://dotnet.microsoft.com/download) (10.0.400 or newer).
|
||||
Requires the [.NET 10 SDK](https://dotnet.microsoft.com/download) (10.0.403 or newer).
|
||||
|
||||
```text
|
||||
dotnet build HashTool.slnx
|
||||
@@ -116,7 +118,8 @@ How the code is organised: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md). How rel
|
||||
|
||||
## Contributing
|
||||
|
||||
Bug reports, translations and pull requests are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
Bug reports, translations and pull requests are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Something hard to
|
||||
use with a keyboard, screen reader or other assistive technology? See [ACCESSIBILITY.md](ACCESSIBILITY.md).
|
||||
|
||||
## Legal Stuff
|
||||
|
||||
|
||||
@@ -57,7 +57,9 @@ mismatched file, 2 usage error or unreadable checksum file. Published per platfo
|
||||
settings store. CI requires at least 80% line coverage of Core.
|
||||
- `HashTool.Cli.Tests` — commands, output formats and exit codes.
|
||||
- `HashTool.App.Tests` — Avalonia headless: every page in several languages, a create-and-verify flow, translation
|
||||
integrity (keys, placeholders, Languages.json ↔ resx ↔ project, satellite assemblies, unused keys), language detection.
|
||||
integrity (keys, placeholders, Languages.json ↔ resx ↔ project, satellite assemblies, unused keys), language detection,
|
||||
and accessibility (`AccessibilityTests`: a real, translated automation name for every control, headings, Tab inside
|
||||
file rows, focus when buttons swap, WCAG contrast of every theme palette; see [ACCESSIBILITY.md](../ACCESSIBILITY.md)).
|
||||
- `tests/Compat/LegacyClient` — not in the solution: the release workflow uses it to update a real 1.1.3 install with
|
||||
its own Velopack 0.0.1298 library and updater (see [RELEASING.md](RELEASING.md)).
|
||||
|
||||
|
||||
@@ -31,6 +31,23 @@ Results: **VALID**, **MISMATCH!**, *Not a valid … hash* (wrong length or chara
|
||||
On Windows, files you cannot read can be retried with **Restart as Administrator** (offered after a run, and in
|
||||
Settings). While elevated, Windows blocks drag and drop from Explorer.
|
||||
|
||||
### Keyboard
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| Ctrl/⌘+O | Add files |
|
||||
| Ctrl/⌘+Shift+O | Add a folder |
|
||||
| Ctrl/⌘+F | Go to the search box |
|
||||
| Ctrl/⌘+Enter | Compute (Generate) or verify (Verify) all |
|
||||
| Esc | Cancel the run; close a dialog |
|
||||
| Delete | Remove the selected row |
|
||||
| Up/Down | Move between rows |
|
||||
| Tab / Shift+Tab | Next / previous control; in a row, its algorithm, hash and buttons, then out of the list |
|
||||
| Enter, Space | Press the focused button; in a dialog, Enter presses the highlighted button |
|
||||
|
||||
Everything you can drop has a button too (**Add Files…**, **Add Folder…**, **Open Checksum File…**, **Browse** on a
|
||||
row). Screen readers, themes and other accessibility notes: [ACCESSIBILITY.md](../ACCESSIBILITY.md).
|
||||
|
||||
### Settings worth knowing
|
||||
|
||||
| Setting | What it does |
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "10.0.400",
|
||||
"version": "10.0.403",
|
||||
"rollForward": "latestFeature",
|
||||
"allowPrerelease": false
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -18,8 +18,9 @@ namespace HashTool.App.Infrastructure;
|
||||
|
||||
/// <summary>
|
||||
/// <c>CheckHash --smoke-test [--smoke-out result.json] [--expect-version 1.2.0]</c>: starts the app headless, loads every
|
||||
/// page and language, hashes and verifies a file, and reports the Velopack install state. Used by CI and the release
|
||||
/// upgrade gate on published (single-file) builds.
|
||||
/// page and language, hashes and verifies a file, and reports the Velopack install state and the .NET runtime it runs on
|
||||
/// (the one bundled into self-contained releases). Used by CI and the release upgrade gate on published (single-file)
|
||||
/// builds.
|
||||
/// </summary>
|
||||
public static class SmokeTest
|
||||
{
|
||||
@@ -131,6 +132,7 @@ public static class SmokeTest
|
||||
public int Languages { get; set; }
|
||||
public string? DataDirectory { get; set; }
|
||||
public string Culture { get; set; } = CultureInfo.CurrentUICulture.Name;
|
||||
public string Runtime { get; set; } = Environment.Version.ToString();
|
||||
public List<string> Errors { get; } = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using HashTool.App.Infrastructure;
|
||||
using HashTool.App.Infrastructure.Logging;
|
||||
using HashTool.App.ViewModels;
|
||||
@@ -74,6 +75,20 @@ public sealed class AppCommandLineTests
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class SmokeReportTests
|
||||
{
|
||||
[Fact]
|
||||
public void Json_NamesTheRuntimeTheAppRunsOn()
|
||||
{
|
||||
// Release logs show this value to prove which .NET runtime a self-contained build bundles.
|
||||
using var json = JsonDocument.Parse(JsonSerializer.Serialize(new SmokeTest.SmokeReport(), SmokeJsonContext.Default.SmokeReport));
|
||||
|
||||
Assert.Equal(Environment.Version.ToString(), json.RootElement.GetProperty("runtime").GetString());
|
||||
Assert.False(json.RootElement.GetProperty("ok").GetBoolean());
|
||||
Assert.Equal(0, json.RootElement.GetProperty("errors").GetArrayLength());
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class TextHelperTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user