fix: a screen reader says what the date and time hold and that a tree group opens

The date and time pickers were read as a grid: the button inside them now carries
the field's label and its value. A scenery group in the tree says whether it is
open or closed, and the weather fields are named by their labels.
This commit is contained in:
maj00r
2026-11-15 17:49:44 +01:00
parent a83bb4a7eb
commit 5883376762
7 changed files with 192 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ using Avalonia.Media.Imaging;
using Avalonia.Threading;
using Avalonia.VisualTree;
using StarterNG.Classes;
using StarterNG.Controls;
using StarterNG.Domain;
using StarterNG.Application;
using StarterNG.Domain.Sceneries;
@@ -101,7 +102,7 @@ public partial class Scenarios : UserControl
private TreeViewItem ToTreeItem(SceneryTreeNode node, bool expandGroups)
{
var item = new TreeViewItem
var item = new ExpandableTreeViewItem
{
Header = node.IsGroup ? node.Label : SceneryHeader(node.Label, Sceneries[node.SceneryIndex]),
Tag = node.IsGroup ? null : node.SceneryIndex,