aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/aboutdialog.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-09-09 13:10:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-04 11:43:09 +0200
commit6cd634340a2f43097f1deb457c710357d67af2f0 (patch)
tree05c51b02404da6ebd3368f0275f1ef918af4f01d /ui/aboutdialog.go
parentmod: bump versions (diff)
downloadwireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.tar.xz
wireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.zip
ui: annotate controls
Regarding interface and peer info text boxes: The read-only edit boxes containing interface and peer status and information were read as "<value> read-only multiline" by NVDA screen reader. The read-only edit boxes that serve the informative purpose only must be annotated as ROLE_SYSTEM_STATICTEXT instead of edit box-inherited ROLE_SYSTEM_TEXT role. Regarding logo image in about dialog: NVDA reads "unknown" when reading the dialog without this patch. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'ui/aboutdialog.go')
-rw-r--r--ui/aboutdialog.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/aboutdialog.go b/ui/aboutdialog.go
index ab3b17e7..d87727aa 100644
--- a/ui/aboutdialog.go
+++ b/ui/aboutdialog.go
@@ -79,6 +79,7 @@ func runAboutDialog(owner walk.Form) error {
if logo, err := loadLogoIcon(128); err == nil {
iv.SetImage(logo)
}
+ iv.Accessibility().SetName("WireGuard logo image")
wgLbl, err := walk.NewTextLabel(showingAboutDialog)
if err != nil {