eext_progressbar: make circle progressbar scalable to support multi-resolution targets 07/238607/3
authorTaehyub Kim <taehyub.kim@samsung.com>
Wed, 15 Jul 2020 10:49:03 +0000 (19:49 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Wed, 15 Jul 2020 11:02:54 +0000 (20:02 +0900)
Applied ELM_SCALE_SIZE to circle progressbar width and radius to cover multi-resolution.
This make circle progress bar scalable.

Change-Id: Iaacae610ccae14f2ca2dc0eab2f828bc7ec5fc1b

src/wearable/circle/efl_extension_circle_object_progressbar.c

index bd8ac441d57021c70d7dec6c106a7e7e3362c4a5..30fdf3613d320bcbba1390b03253fdc48e8e0c1b 100644 (file)
@@ -50,8 +50,8 @@
 #define PROGRESSBAR_BG_COLOR_DISABLED_B 64
 #define PROGRESSBAR_BG_COLOR_DISABLED_A 255
 
-#define PROGRESSBAR_WIDTH_SIZE 6
-#define PROGRESSBAR_RADIUS_SIZE 177
+#define PROGRESSBAR_WIDTH_SIZE ELM_SCALE_SIZE(6)
+#define PROGRESSBAR_RADIUS_SIZE (ELM_SCALE_SIZE(180) - PROGRESSBAR_WIDTH_SIZE/2 - 1)
 
 //ONEUI2.0(20Feb2020): Update progressbar reading as per UX
 #define ACCESS_BUF_SIZE 1024