From 1a3a3481c0cc00e98bb57944dac8e2706383142c Mon Sep 17 00:00:00 2001 From: Dongsug Song Date: Tue, 26 Jan 2021 18:10:22 +0900 Subject: [PATCH] [NUI] Change Feedback default as false in Control - Change Feedback default as false in Control - Change Feedback as true in each Components (ex: Switch, Button) - Add #if PROFILE_MOBILE to make NUI.Components run on Ubuntu --- src/Tizen.NUI.Components/Controls/Button.Internal.cs | 4 ++++ src/Tizen.NUI.Components/Controls/Control.cs | 2 -- src/Tizen.NUI.Components/Controls/Switch.cs | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/Button.Internal.cs b/src/Tizen.NUI.Components/Controls/Button.Internal.cs index 82ff7a5..996f777 100755 --- a/src/Tizen.NUI.Components/Controls/Button.Internal.cs +++ b/src/Tizen.NUI.Components/Controls/Button.Internal.cs @@ -413,6 +413,10 @@ namespace Tizen.NUI.Components LayoutDirectionChanged += OnLayoutDirectionChanged; AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Button"); + + #if PROFILE_MOBILE + Feedback = true; + #endif } private void UpdateUIContent() diff --git a/src/Tizen.NUI.Components/Controls/Control.cs b/src/Tizen.NUI.Components/Controls/Control.cs index 833ca7f..a9a7464 100755 --- a/src/Tizen.NUI.Components/Controls/Control.cs +++ b/src/Tizen.NUI.Components/Controls/Control.cs @@ -303,8 +303,6 @@ namespace Tizen.NUI.Components StateFocusableOnTouchMode = false; EnableControlState = true; - - Feedback = true; } } } diff --git a/src/Tizen.NUI.Components/Controls/Switch.cs b/src/Tizen.NUI.Components/Controls/Switch.cs index 90945d4..4b04a91 100755 --- a/src/Tizen.NUI.Components/Controls/Switch.cs +++ b/src/Tizen.NUI.Components/Controls/Switch.cs @@ -315,6 +315,9 @@ namespace Tizen.NUI.Components private void Initialize() { IsSelectable = true; + #if PROFILE_MOBILE + Feedback = true; + #endif } private void OnSelect() -- 2.7.4