Merge "Add ThemeOverlay() API in Elementary." into devel/dotnet
authorKangho Hur <kangho.hur@samsung.com>
Mon, 7 Nov 2016 02:56:37 +0000 (11:56 +0900)
committerGerrit Code Review <gerrit@s001>
Mon, 7 Nov 2016 02:56:37 +0000 (11:56 +0900)
src/ElmSharp/ElmSharp/Elementary.cs
test/ElmSharp.Test/TestRunner.cs

index 051a91f..42ba886 100644 (file)
@@ -26,10 +26,6 @@ namespace ElmSharp
         public static void Initialize()
         {
             Interop.Elementary.elm_init(0, null);
-            if (File.Exists(_themeFilePath))
-            {
-                Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, _themeFilePath);
-            }
         }
 
         public static void Shutdown()
@@ -42,6 +38,14 @@ namespace ElmSharp
             Interop.Elementary.elm_run();
         }
 
+        public static void ThemeOverlay()
+        {
+            if (File.Exists(_themeFilePath))
+            {
+                Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, _themeFilePath);
+            }
+        }
+
         public static double GetSystemScrollFriction()
         {
             return Interop.Elementary.elm_config_scroll_bring_in_scroll_friction_get();
index a306469..9bee255 100644 (file)
@@ -48,6 +48,7 @@ namespace ElmSharp.Test
             ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res");
 
             Elementary.Initialize();
+            Elementary.ThemeOverlay();
 
             EcoreSynchronizationContext.Initialize();