[NUI] set default theme for TV profile
authordongsug.song <dongsug.song@samsung.com>
Wed, 7 Dec 2022 23:51:00 +0000 (08:51 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 14 Dec 2022 02:16:18 +0000 (11:16 +0900)
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/Input/FocusManager.cs
src/Tizen.NUI/src/public/Theme/DefaultThemeTV.cs
src/Tizen.NUI/src/public/Theme/ThemeManager.cs

index d592799..e83d75c 100755 (executable)
@@ -14,6 +14,9 @@
  * limitations under the License.
  *
  */
+#if !PROFILE_TV
+#define ExternalThemeEnabled
+#endif
 
 using System;
 using System.ComponentModel;
index b404308..66392d7 100755 (executable)
@@ -583,7 +583,9 @@ namespace Tizen.NUI
             FocusManager ret = new FocusManager(Interop.FocusManager.Get(), true);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
+#if !PROFILE_TV
             ret.FocusIndicator = ret.GetDefaultFocusIndicator();
+#endif
             return ret;
         }
 
index 772a5db..89646fb 100644 (file)
@@ -23,6 +23,8 @@ namespace Tizen.NUI
     {
         public Theme Create()
         {
+            Tizen.Log.Info("NUI", $"PROFILE_TV DefaultThemeCreator.Create()");
+
             Theme theme = new Theme()
             {
                 Id = DefaultId,
index 7d351a5..0b6d66f 100755 (executable)
@@ -352,6 +352,12 @@ namespace Tizen.NUI
 
         internal static void AddPackageTheme(IThemeCreator themeCreator)
         {
+#if PROFILE_TV
+            Tizen.Log.Info("NUI", $"PROFILE_TV AddPackageTheme()");
+            userTheme = null;
+            baseTheme = themeCreator.Create();
+            return;
+#endif
             if (packages.Contains(themeCreator))
             {
                 return;