{
if (value.IsDefault)
{
- Console.WriteLine("ItemObject instance doesn't support to set TitleBarBackgroundColor to Color.Default.");
- //TODO. Soon we will support the "elm_object_item_color_class_del" function in EFL.
+ Interop.Elementary.elm_object_item_color_class_del(Handle, "bg_title");
}
else
{
Button barChange = new Button(parent)
{
- Text = "TitleTextColor & BarColor",
+ Text = "TitleBarColor Change",
+ WeightX = 1,
+ AlignmentX = -1,
+ };
+
+ Button barColorDefault = new Button(parent)
+ {
+ Text = "TitleBarColor - Default",
WeightX = 1,
AlignmentX = -1,
};
insertAfterTop.Show();
removeTop.Show();
barChange.Show();
+ barColorDefault.Show();
push.Clicked += (s, e) =>
{
}
};
+ barColorDefault.Clicked += (s, e) =>
+ {
+ int currentIndex = _navi.NavigationStack.Count - 1;
+ if (currentIndex >= 0)
+ {
+ _navi.NavigationStack[currentIndex].TitleBarBackgroundColor = Color.Default;
+ }
+ };
+
box.PackEnd(label);
box.PackEnd(push);
box.PackEnd(pop);
box.PackEnd(insertAfterTop);
box.PackEnd(removeTop);
box.PackEnd(barChange);
+ box.PackEnd(barColorDefault);
return box;
}