summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshima Garg <ashima.garg@samsung.com>2018-09-07 20:44:52 +0530
committerAshima Garg <ashima.garg@samsung.com>2018-09-07 20:44:52 +0530
commit1afabc1cdf738e58fb15a336256ecf2b7c8ac67c (patch)
treef7bdd3f294911737cf80b112fc9165d17a249b1f
parenta9b8a38618825790604d46f4cc9229850af8a6f7 (diff)
downloadanalog-watch-1afabc1cdf738e58fb15a336256ecf2b7c8ac67c.tar.gz
analog-watch-1afabc1cdf738e58fb15a336256ecf2b7c8ac67c.tar.bz2
analog-watch-1afabc1cdf738e58fb15a336256ecf2b7c8ac67c.zip
Implemented Highlight Feature
Change-Id: I6d61f13eb7ae5ddeabfcb85719b13677cee5a0a3 Signed-off-by: Ashima Garg <ashima.garg@samsung.com>
-rw-r--r--src/comp-manager.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp-manager.c b/src/comp-manager.c
index d4872d6..40c91a4 100644
--- a/src/comp-manager.c
+++ b/src/comp-manager.c
@@ -262,7 +262,7 @@ void _comp_on_ready_for_edit_cb(watchface_editable_container_h ed_con_h, const c
}
watchface_editable_highlight_create(&hi, WATCHFACE_EDITABLE_SHAPE_TYPE_CIRCLE);
- watchface_editable_highlight_set_geometry(hi, 100, 100, 100, 100);
+ watchface_editable_highlight_set_geometry(hi, 0, 0, 360, 360);
watchface_editable_add_design_element(ed_con_h, DIAL_EDIT, current_idx,
candidates_list, hi, "Dial");
watchface_editable_candidates_list_destroy(candidates_list);
@@ -283,13 +283,12 @@ void _comp_on_ready_for_edit_cb(watchface_editable_container_h ed_con_h, const c
}
}
- watchface_editable_highlight_set_geometry(hi, 100, 100, 100, 100);
watchface_editable_add_design_element(ed_con_h, HANDS_EDIT, current_idx,
- candidates_list, hi, "Hand");
+ candidates_list, NULL, "Hand");
watchface_editable_candidates_list_destroy(candidates_list);
/* Battery */
- watchface_editable_highlight_set_geometry(hi, 100, 100, 100, 100);
+ watchface_editable_highlight_set_geometry(hi, 208, 118, 124, 124);
watchface_editable_add_complication(ed_con_h, RIGHT_COMP, _comp, hi);
watchface_editable_request_edit(ed_con_h, _comp_on_editable_update, user_data);