From a29fdf40fe9ddaed3d3deb56effab7fedc915cd7 Mon Sep 17 00:00:00 2001
From: Patricio <12850986+PAumedes@users.noreply.github.com>
Date: Tue, 13 Oct 2026 20:24:05 -0300
Subject: [PATCH 1/5] refactor: show settings lists through compiled bindings
DisplayMemberPath looks the property up at run time, which Native AOT
can't do. The country and text recognition lists use {x:Bind} templates,
and their items read as their names for screen readers.
---
Queueify.Core/Services/Countries.cs | 6 +++++-
Queueify.Core/Services/OcrLanguages.cs | 6 +++++-
Queueify.Tests/ListOptionTests.cs | 19 +++++++++++++++++++
Queueify/MainWindow.xaml | 14 +++++++++++---
4 files changed, 40 insertions(+), 5 deletions(-)
create mode 100644 Queueify.Tests/ListOptionTests.cs
diff --git a/Queueify.Core/Services/Countries.cs b/Queueify.Core/Services/Countries.cs
index 1674bb3..3372f13 100644
--- a/Queueify.Core/Services/Countries.cs
+++ b/Queueify.Core/Services/Countries.cs
@@ -2,7 +2,11 @@
namespace Queueify.Services;
-public sealed record CountryOption(string Code, string Name);
+public sealed record CountryOption(string Code, string Name)
+{
+ /// What screen readers say for the item in the Settings list.
+ public override string ToString() => Name;
+}
///
/// The countries offered in Settings: where Tidal is available, all of which are Spotify markets
diff --git a/Queueify.Core/Services/OcrLanguages.cs b/Queueify.Core/Services/OcrLanguages.cs
index 6443e81..4f6c3d1 100644
--- a/Queueify.Core/Services/OcrLanguages.cs
+++ b/Queueify.Core/Services/OcrLanguages.cs
@@ -2,7 +2,11 @@
namespace Queueify.Services;
-public sealed record OcrLanguageOption(string Tag, string Name);
+public sealed record OcrLanguageOption(string Tag, string Name)
+{
+ /// What screen readers say for the item in the Settings lists.
+ public override string ToString() => Name;
+}
///
/// The text recognition languages Queueify offers to install (Windows "Features on Demand"), and
diff --git a/Queueify.Tests/ListOptionTests.cs b/Queueify.Tests/ListOptionTests.cs
new file mode 100644
index 0000000..95192b8
--- /dev/null
+++ b/Queueify.Tests/ListOptionTests.cs
@@ -0,0 +1,19 @@
+using Queueify.Services;
+
+namespace Queueify.Tests;
+
+// Settings lists show these through a template; screen readers read each item by its ToString().
+public class ListOptionTests
+{
+ [Fact]
+ public void A_country_reads_as_its_name()
+ {
+ Assert.Equal("Argentina", new CountryOption("AR", "Argentina").ToString());
+ }
+
+ [Fact]
+ public void A_text_recognition_language_reads_as_its_name()
+ {
+ Assert.Equal("Spanish (Spain)", new OcrLanguageOption("es-ES", "Spanish (Spain)").ToString());
+ }
+}
diff --git a/Queueify/MainWindow.xaml b/Queueify/MainWindow.xaml
index f62663c..9bf6686 100644
--- a/Queueify/MainWindow.xaml
+++ b/Queueify/MainWindow.xaml
@@ -222,6 +222,14 @@
+
+
+
+
+
+
+
+
@@ -688,7 +696,7 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
@@ -710,7 +718,7 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
@@ -745,7 +753,7 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
-
From ed28469ac7d440d2a3e7b3f915dac67150155994 Mon Sep 17 00:00:00 2001
From: Patricio <12850986+PAumedes@users.noreply.github.com>
Date: Tue, 13 Oct 2026 22:27:36 -0300
Subject: [PATCH 2/5] feat(ui): reach a magazine photo's lines by keyboard and
screen reader
The highlighted lines on a photo were plain shapes that only took a mouse
click. They are buttons now: Tab reaches them, Enter or Space picks one,
and screen readers read the line. They look as before. A UI test pastes
the test photo and picks a line.
---
Queueify/MainWindow.xaml | 36 +++++++++++++++++++++++++++++++++++
Queueify/MainWindow.xaml.cs | 17 ++++++++---------
tests/ui/Queueify.UiTests.ps1 | 20 +++++++++++++++++++
3 files changed, 64 insertions(+), 9 deletions(-)
diff --git a/Queueify/MainWindow.xaml b/Queueify/MainWindow.xaml
index 9bf6686..fdfdcce 100644
--- a/Queueify/MainWindow.xaml
+++ b/Queueify/MainWindow.xaml
@@ -222,6 +222,42 @@
+
+
+
diff --git a/Queueify/MainWindow.xaml.cs b/Queueify/MainWindow.xaml.cs
index d3b3221..f05359b 100644
--- a/Queueify/MainWindow.xaml.cs
+++ b/Queueify/MainWindow.xaml.cs
@@ -2,6 +2,7 @@
using Microsoft.UI.Dispatching;
using Microsoft.UI.Windowing;
using Microsoft.UI.Xaml;
+using Microsoft.UI.Xaml.Automation;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
@@ -876,24 +877,22 @@ private async Task LoadPhotoAsync(IRandomAccessStream stream)
LineCanvas.Children.Clear();
var accent = (Color)Application.Current.Resources["SystemAccentColor"];
var idle = new SolidColorBrush(Color.FromArgb(36, accent.R, accent.G, accent.B));
- var hover = new SolidColorBrush(Color.FromArgb(110, accent.R, accent.G, accent.B));
var stroke = new SolidColorBrush(accent);
+ var style = (Style)Root.Resources["PhotoLineButton"];
foreach (var line in page.Lines)
{
- var box = new Border
+ var box = new Button
{
+ Style = style,
Width = line.Bounds.Width + 8,
Height = line.Bounds.Height + 6,
Background = idle,
BorderBrush = stroke,
- BorderThickness = new Thickness(1.5),
- CornerRadius = new CornerRadius(3),
Tag = line.Text,
};
+ AutomationProperties.SetName(box, line.Text);
ToolTipService.SetToolTip(box, line.Text);
- box.PointerEntered += (_, _) => box.Background = hover;
- box.PointerExited += (_, _) => box.Background = idle;
- box.Tapped += OnLineTapped;
+ box.Click += OnLineClicked;
Canvas.SetLeft(box, line.Bounds.X - 4);
Canvas.SetTop(box, line.Bounds.Y - 3);
LineCanvas.Children.Add(box);
@@ -923,9 +922,9 @@ private void FitPhoto()
/// A click on a line of the photo puts it in the search box: the first click after an album
/// was added starts a new search, later clicks are appended (artist, then album).
///
- private void OnLineTapped(object sender, TappedRoutedEventArgs e)
+ private void OnLineClicked(object sender, RoutedEventArgs e)
{
- if (sender is not Border { Tag: string raw } box) return;
+ if (sender is not Button { Tag: string raw } box) return;
var (text, year) = OcrService.CleanLine(raw);
box.Opacity = 0.45;
diff --git a/tests/ui/Queueify.UiTests.ps1 b/tests/ui/Queueify.UiTests.ps1
index 2321cee..679e1ad 100644
--- a/tests/ui/Queueify.UiTests.ps1
+++ b/tests/ui/Queueify.UiTests.ps1
@@ -186,6 +186,26 @@ Select-Item (Find 'Magazine photo*' 'ListItem')
Check ((FindId 'PageTitle').Current.Name -eq 'Magazine photo') 'photo page title'
Check ($null -ne (Find 'Open photo*' 'Button')) 'photo page offers Open photo'
+# Reading a photo goes through Windows' clipboard, imaging and OCR, all calls compiled ahead of time in the
+# download. The page's lines are buttons, so they work by keyboard and screen reader too.
+# (Replaces the clipboard's content with the test photo.)
+Add-Type -AssemblyName System.Drawing
+$photo = [System.Drawing.Image]::FromFile((Resolve-Path "$PSScriptRoot\..\..\Queueify.Tests\TestData\magazine-page.png").Path)
+[System.Windows.Forms.Clipboard]::SetImage($photo); $photo.Dispose()
+# Reading a photo opens the Add albums panel; put it back as it was for the checks after this one.
+$paneWasHidden = $null -ne (Find 'Show the Add albums panel*' 'Button')
+Invoke (Find 'Paste*' 'Button')
+$line = $null
+for ($i = 0; $i -lt 20 -and -not $line; $i++) { Start-Sleep -Milliseconds 500; $line = Find 'Clics modernos (Interdisc, 1983)' 'Button' }
+Check ($null -ne $line) 'a pasted magazine photo is read: its lines are buttons'
+if ($line) {
+ Invoke $line
+ Check ((Find 'Find an album' 'Edit').GetCurrentPattern([System.Windows.Automation.ValuePattern]::Pattern).Current.Value -eq 'Clics modernos 1983') `
+ 'choosing a line puts it in the search, tidied'
+ SetText (Find 'Find an album' 'Edit') ''
+}
+if ($paneWasHidden -and $null -eq (Find 'Show the Add albums panel*' 'Button')) { Keys '^b' }
+
# ── Help (F1) ──
Keys '{F1}'
Check ((FindId 'PageTitle').Current.Name -eq 'Help') 'F1 opens Help'
From dd9d11f23ad021510d139ca2c87d0df3f705e20c Mon Sep 17 00:00:00 2001
From: Patricio <12850986+PAumedes@users.noreply.github.com>
Date: Tue, 13 Oct 2026 22:27:43 -0300
Subject: [PATCH 3/5] feat: download Queueify as a 21 MB exe compiled to native
code
The app is compiled ahead of time (Native AOT), so no .NET runtime ships
with it, and the published folder is appended to a small starter exe,
compressed with Brotli: 21 MB, down from 35 MB in 1.2.0 and 93 MB in
1.1.0. The starter unpacks it once per version into
%LOCALAPPDATA%\Queueify\app, starts it and removes older versions.
- WinUI reads lists only when their WinRT interop code was generated at
build time: every ItemsSource gets a List