[ElmSharp] Added vd theme file path in ThemeOverlay for product tv (#2095)
authorarosis78 <jh0506.yun@samsung.com>
Mon, 12 Oct 2020 08:59:49 +0000 (17:59 +0900)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 08:59:49 +0000 (17:59 +0900)
* [ElmSharp] Added vd theme file path in ThemeOverlay for product tv

* [ElmSharp] Added tv theme file path in ThemeOverlay for product tv

Co-authored-by: Kangho Hur <rookiejava@gmail.com>
src/ElmSharp/ElmSharp/Elementary.cs

index 4143ab4..5f8faf5 100644 (file)
@@ -49,6 +49,7 @@ namespace ElmSharp
     public static class Elementary
     {
         private const string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
+        private const string _tvThemeFilePath = "/usr/share/elm-sharp/vd-elm-sharp-theme.edj";
 
         /// <summary>
         /// EvasObjectRealized will be triggered when the EvasObject is realized.
@@ -236,9 +237,13 @@ namespace ElmSharp
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static void ThemeOverlay()
         {
-            if (!Window.IsPreloaded && File.Exists(_themeFilePath))
+            if (!Window.IsPreloaded)
             {
-                AddThemeOverlay(_themeFilePath);
+                if (File.Exists(_themeFilePath))
+                    AddThemeOverlay(_themeFilePath);
+
+                if (Elementary.GetProfile() == "tv" && File.Exists(_tvThemeFilePath))
+                    AddThemeOverlay(_tvThemeFilePath);
             }
         }