forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
826da94
commit 99726d5
Showing
4 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Uno; | ||
|
||
namespace Windows.UI.ViewManagement | ||
{ | ||
/// <summary> | ||
/// Provides access to the high contrast accessibility settings. | ||
/// </summary> | ||
public partial class AccessibilitySettings | ||
{ | ||
/// <summary> | ||
/// Initializes a new AccessibilitySettings object. | ||
/// </summary> | ||
public AccessibilitySettings() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets a value that indicates whether the system high contrast feature is on or off. | ||
/// </summary> | ||
/// <remarks> | ||
/// In Uno Platform this returns the value of <see cref="WinRTFeatureConfiguration.Accessibility.HighContrast"/>. | ||
/// The default is false. | ||
/// </remarks> | ||
[NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] | ||
public bool HighContrast => WinRTFeatureConfiguration.Accessibility.HighContrast; | ||
|
||
/// <summary> | ||
/// Gets the name of the default high contrast color scheme. | ||
/// </summary> | ||
/// <remarks> | ||
/// In Uno Platform this returns the value of <see cref="WinRTFeatureConfiguration.Accessibility.HighContrastScheme"/>. | ||
/// The default is "High Contrast Black". | ||
/// </remarks> | ||
[NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] | ||
public string HighContrastScheme => WinRTFeatureConfiguration.Accessibility.HighContrastScheme; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Uno | ||
{ | ||
partial class WinRTFeatureConfiguration | ||
{ | ||
public static class Accessibility | ||
{ | ||
/// <summary> | ||
/// Allows overriding the value returned by <see cref="Windows.UI.ViewManagement.AccessibilitySettings.HighContrast"/>. | ||
/// </summary> | ||
public static bool HighContrast { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Allows overriding the value returned by <see cref="Windows.UI.ViewManagement.AccessibilitySettings.HighContrastScheme"/>. | ||
/// </summary> | ||
public static string HighContrastScheme { get; set; } = "High Contrast Black"; | ||
} | ||
} | ||
} |