From 30eb76691f112157b01941cbf1e954ffae7cdf4d Mon Sep 17 00:00:00 2001 From: JEONGHYUN YUN Date: Mon, 31 Oct 2016 17:03:36 +0900 Subject: [PATCH] Add ThemeOverlay() API in Elementary. Change-Id: I482c7e5250d9475a5213687e01b282a15cb1a133 Signed-off-by: JEONGHYUN YUN --- packaging/elm-sharp.spec | 2 +- src/ElmSharp/ElmSharp/Elementary.cs | 12 ++++++++---- test/ElmSharp.Test/TestRunner.cs | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec index e05a391..13ef7c3 100644 --- a/packaging/elm-sharp.spec +++ b/packaging/elm-sharp.spec @@ -8,7 +8,7 @@ Name: elm-sharp Summary: C# Binding for Elementary -Version: 1.0.10 +Version: 1.0.11 Release: 1 Group: Development/Libraries License: Apache-2.0 diff --git a/src/ElmSharp/ElmSharp/Elementary.cs b/src/ElmSharp/ElmSharp/Elementary.cs index 6213b3f..7b59ed6 100755 --- a/src/ElmSharp/ElmSharp/Elementary.cs +++ b/src/ElmSharp/ElmSharp/Elementary.cs @@ -10,10 +10,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() @@ -26,6 +22,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 52fc071..47dac8b 100644 --- a/test/ElmSharp.Test/TestRunner.cs +++ b/test/ElmSharp.Test/TestRunner.cs @@ -40,6 +40,7 @@ namespace ElmSharp.Test ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res"); Elementary.Initialize(); + Elementary.ThemeOverlay(); EcoreSynchronizationContext.Initialize(); -- 2.7.4