summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjh0506.yun <jh0506.yun@DO-JH0506-YUN03>2016-10-11 20:58:45 +0900
committerjh0506.yun <jh0506.yun@DO-JH0506-YUN03>2016-10-11 21:30:24 +0900
commit3f767062a543e70eb08d6d002e6e00a6932560b9 (patch)
tree12d077794d9ed300733ddc1d8a06647171738c52
parentc355392311e63b88911cf50d621834983a4ef7bb (diff)
downloadelm-sharp-3f767062a543e70eb08d6d002e6e00a6932560b9.tar.gz
elm-sharp-3f767062a543e70eb08d6d002e6e00a6932560b9.tar.bz2
elm-sharp-3f767062a543e70eb08d6d002e6e00a6932560b9.zip
Sync elementary color class API
Change-Id: Ib6faa9aa6c510fe7a59ffd83ee7ad6f411e690d1 Signed-off-by: jh0506.yun <jh0506.yun@DO-JH0506-YUN03>
-rw-r--r--ElmSharp.Test/TC/ButtonTest1.cs4
-rw-r--r--ElmSharp/ElmSharp/Widget.cs2
-rw-r--r--ElmSharp/Interop/Interop.Elementary.cs2
3 files changed, 4 insertions, 4 deletions
diff --git a/ElmSharp.Test/TC/ButtonTest1.cs b/ElmSharp.Test/TC/ButtonTest1.cs
index 377ff9a..9e655af 100644
--- a/ElmSharp.Test/TC/ButtonTest1.cs
+++ b/ElmSharp.Test/TC/ButtonTest1.cs
@@ -14,14 +14,14 @@ namespace ElmSharp.Test
Text = "Button 1",
};
- button1.SetPartColor("bg-default", Color.Red);
+ button1.SetPartColor("bg-normal", Color.Red);
button1.Clicked += (s, e) =>
{
Console.WriteLine("Button1 Clicked! : {0}", button1.ClassName);
Console.WriteLine("Button1 Clicked! : {0}", button1.ClassName.ToLower());
Console.WriteLine("Button1 Clicked! : {0}", button1.ClassName.ToLower().Replace("_","/widget/"));
- Console.WriteLine("Button1 Clicked! : {0}", button1.ClassName.ToLower().Replace("_", "/widget/")+ "/" + "bg-default");
+ Console.WriteLine("Button1 Clicked! : {0}", button1.ClassName.ToLower().Replace("_", "/widget/")+ "/" + "bg-normal");
};
button1.Pressed += (s, e) =>
diff --git a/ElmSharp/ElmSharp/Widget.cs b/ElmSharp/ElmSharp/Widget.cs
index 1bca2a0..38b88cc 100644
--- a/ElmSharp/ElmSharp/Widget.cs
+++ b/ElmSharp/ElmSharp/Widget.cs
@@ -121,7 +121,7 @@ namespace ElmSharp
public void SetPartColor(string part, Color color)
{
- Interop.Elementary.elm_object_part_color_set(Handle, part, color.R, color.G, color.B, color.A);
+ Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R, color.G, color.B, color.A);
}
internal IntPtr GetPartContent(string part)
diff --git a/ElmSharp/Interop/Interop.Elementary.cs b/ElmSharp/Interop/Interop.Elementary.cs
index 970e4b7..91438b7 100644
--- a/ElmSharp/Interop/Interop.Elementary.cs
+++ b/ElmSharp/Interop/Interop.Elementary.cs
@@ -144,7 +144,7 @@ internal static partial class Interop
}
[DllImport(Libraries.Elementary)]
- internal static extern void elm_object_part_color_set(IntPtr obj, string part, int r, int g, int b, int a);
+ internal static extern void elm_object_color_class_color_set(IntPtr obj, string colorClass, int r, int g, int b, int a);
[DllImport(Libraries.Elementary)]
internal static extern void elm_object_part_text_set(IntPtr obj, string part, string text);