From: Seoyeon Kim Date: Thu, 21 Mar 2024 07:30:36 +0000 (+0900) Subject: Update Accessibility highlight frame X-Git-Tag: accepted/tizen/unified/20240603.160946~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ea3a9c326084feb1cf98e1f27543573c745bcf5;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-accessibility.git Update Accessibility highlight frame - Update Accessibility highlight frame according to the public UX guide. - This patch can resolve `TNINE-412` issue : https://jira.sec.samsung.net/browse/TNINE-412 Change-Id: I4be18d89a88f4f7c9ae1c9d7e9fb27bec64a50a9 Signed-off-by: Seoyeon Kim --- diff --git a/Settings/SettingAccessibility/SettingAccessibility.cs b/Settings/SettingAccessibility/SettingAccessibility.cs index b73248d..0b342fb 100755 --- a/Settings/SettingAccessibility/SettingAccessibility.cs +++ b/Settings/SettingAccessibility/SettingAccessibility.cs @@ -8,6 +8,9 @@ namespace SettingAccessibility { public class Program : NUIWidgetApplication { + private static readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource; + private static readonly string HighlightFrame = ResourcePath + "/images/highlightFrame.9.png"; + public Program(Dictionary widgetSet) : base(widgetSet) { @@ -17,14 +20,13 @@ namespace SettingAccessibility { base.OnCreate(); - // Update the accessibility highlight box - // TODO : Need to consider whether using View properties or ImageView itself. (Especially, dotted line) - View highlightBox = new View() - { - BackgroundColor = new Color("#FAFAFA"), - Opacity = 0.1f, - CornerRadius = 12.0f, + ImageView highlightBox = new ImageView(HighlightFrame) + { + WidthResizePolicy = ResizePolicyType.FillToParent, + HeightResizePolicy = ResizePolicyType.FillToParent, + AccessibilityHighlightable = false, }; + Accessibility.ClearCurrentlyHighlightedView(); Accessibility.SetHighlightFrameView(highlightBox); } diff --git a/Settings/SettingAccessibility/res/images/highlightFrame.9.png b/Settings/SettingAccessibility/res/images/highlightFrame.9.png new file mode 100644 index 0000000..30483fe Binary files /dev/null and b/Settings/SettingAccessibility/res/images/highlightFrame.9.png differ