dalihub / nui-demo

Contains demos that use the TizenFX NUI library
2 stars 19 forks source link

[HomeApplication][WApps] Add badge icon #55

Open p-czaja opened 4 years ago

p-czaja commented 4 years ago
  1. Add property: int Badge to the RotarySelectorItem class that is responsible for viewing the set number next to item icon. If the number is 0 (default) no number is displayed.
p-czaja commented 4 years ago

@huiyueun, could you please take a look?

huiyueun commented 4 years ago

https://github.com/dalihub/nui-demo/pull/70

huiyueun commented 4 years ago

I've added 'Badge' property to RotarySelectorItem. If you set 'Badge' property, draw badge icon. ex) RotarySelectorItem item; item.Badge = 4;

But Badge icon have problem. If the Badge number is three-digit or two-digit, the badge icon size should be increased. If I increase the size arbitrarily, the image will be broken. Images with large badge icon resources cannot be found. How do we deal with it?

huiyueun commented 4 years ago

https://github.com/dalihub/nui-demo/pull/90

I changed it to the resource you sent me. But I think "bg_1.9.png" is also needed, but there is no file. could you check this file?

1 digit -> bg_1.9.png 2 digit -> bg_2.9.png 3 digit -> bg_3.9.png And the UX guide and the file you sent are different.