[NUI] set default theme for TV profile
authordongsug.song <dongsug.song@samsung.com>
Wed, 7 Dec 2022 23:51:00 +0000 (08:51 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 8 Dec 2022 00:00:44 +0000 (09:00 +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 e2d673f..72b016c 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;