-
Notifications
You must be signed in to change notification settings - Fork 255
Defining Colors
Francesco edited this page Jul 20, 2017
·
18 revisions
t-ui supports colors in hexadecimal representations ("#aarrggbb") and several strings.
#aarrggbb
or
#rrggbb
- the character
#
is needed: if you don't include it, you will notice unexpected behaviors -
aa
represents the alpha channel, the transparency. It's optional, so you can exclude it if you don't need transparency. "00" means "completely transparent", "FF" means "fully opaque". So, "80" means "~50% transparent" -
rr
represents the red color -
gg
represents the green color -
bb
represents the blue color
-
#FFC107
-
#795548
-
#607D8B
-
#3F51B5
-
#E040FB
-
#00000000
(but every color with alpha "00" is ok)
-
#FFrrggbb
(replacerrggbb
with the desired color)
You can use those strings that represent simplified colors:
-
red
-
blue
-
green
-
black
-
white
-
gray
-
cyan
-
magenta
-
yellow
-
lightgray
-
darkgray
-
aqua
-
fuchsia
-
lime
-
maroon
-
navy
-
olive
-
purple
-
silver
-
teal
Francesco Andreuzzi, Italy, andreuzzi.francesco@gmail.com