From: Kangho Hur Date: Mon, 7 Nov 2016 02:56:37 +0000 (+0900) Subject: Merge "Add ThemeOverlay() API in Elementary." into devel/dotnet X-Git-Tag: submit/trunk/20170823.075128~110^2~233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9beab513094ba08c486d1e5ce902601b830194b;hp=8fbe457bd2e5197d6a2656e58b48df2f03e5987b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Merge "Add ThemeOverlay() API in Elementary." into devel/dotnet --- diff --git a/src/ElmSharp/ElmSharp/Elementary.cs b/src/ElmSharp/ElmSharp/Elementary.cs index 051a91f..42ba886 100644 --- a/src/ElmSharp/ElmSharp/Elementary.cs +++ b/src/ElmSharp/ElmSharp/Elementary.cs @@ -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(); diff --git a/test/ElmSharp.Test/TestRunner.cs b/test/ElmSharp.Test/TestRunner.cs index a306469..9bee255 100644 --- a/test/ElmSharp.Test/TestRunner.cs +++ b/test/ElmSharp.Test/TestRunner.cs @@ -48,6 +48,7 @@ namespace ElmSharp.Test ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res"); Elementary.Initialize(); + Elementary.ThemeOverlay(); EcoreSynchronizationContext.Initialize();