Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Johnson <bret.johnson@microsoft.com>2018-07-02 22:10:09 +0300
committerBret Johnson <bret.johnson@microsoft.com>2018-07-02 22:10:09 +0300
commit645471ffd082fc37568201279fc8cd83c657adc9 (patch)
treece53dbb40c1312619f94457b9f3d432147e90f3d
parentd58045d51e290a4197b631d08c7e74422d53ba72 (diff)
[a11y] Give Opacity slider a11y name even though it can't get focus
-rw-r--r--Xwt/Xwt/ColorSelector.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xwt/Xwt/ColorSelector.cs b/Xwt/Xwt/ColorSelector.cs
index 2abf1bdf..8b829c7d 100644
--- a/Xwt/Xwt/ColorSelector.cs
+++ b/Xwt/Xwt/ColorSelector.cs
@@ -27,6 +27,7 @@ using System;
using Xwt.Drawing;
using Xwt.Backends;
using System.Collections.Generic;
+using Xwt.Accessibility;
namespace Xwt
@@ -192,6 +193,7 @@ namespace Xwt
// Don't allow the slider to get keyboard focus, as it doesn't really work with the keyboard and the opacity
// spin button takes its place
alphaSlider.CanGetFocus = false;
+ alphaSlider.Accessible.Label = Application.TranslationCatalog.GetString ("Opacity");
alphaControls.Add (alphaSeparator);
alphaControls.Add (alphaLabel);