[NUI] Create Color from Hex Color Code (#1511)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Wed, 1 Apr 2020 08:06:12 +0000 (17:06 +0900)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 08:06:12 +0000 (17:06 +0900)
commit8fcc24ae8fbbc2aa5069cbc57800aca60561319b
tree82f30ef4503fe58ea8213fe935ced043d193e3e1
parent9536ea7f0da1eba5d538e7a4a90e9cccf62877c6
[NUI] Create Color from Hex Color Code (#1511)

* [NUI] Create Color from Hex Color Code

Create color object from Hex Color Code (string).

1. Code with "#", it will be remove.
2. Without alpha channel, alpah channel will be set 1.0f.
3. Working both. Lowercase and uppercase,

"#FF0000FF" - Good
"#ff0000ff" - Good
"FF0000FF"  - Good
"FF0000"    - Good
"FF"        - Bad  ( too short )

* [NUI] Add ArgumentException to Color constructor
src/Tizen.NUI/src/public/Color.cs