PhilN Member Licensed User Longtime User Jun 8, 2016 #1 The initial idea was that the color picker could assist in generating RGB color values in a text format which you did, however in HTML hex code format "0xFFFFA500". This is not so useful to some of us in B4A or B4i. It would be much more useful if the output was in RGB such as "255,255,165" or "128,255,255,165" since this is very frequently used to define custom colors. Code: Copy Dim MyOrange As Int = Colors.RGB(255,255,165) Dim MyOrangeT As Int = Colors.ARGB(128,255,255,165) Perhaps you could have a radio button option which selects the desired format, HTML hex, RGB or ARGB. That would be much more useful.
The initial idea was that the color picker could assist in generating RGB color values in a text format which you did, however in HTML hex code format "0xFFFFA500". This is not so useful to some of us in B4A or B4i. It would be much more useful if the output was in RGB such as "255,255,165" or "128,255,255,165" since this is very frequently used to define custom colors. Code: Copy Dim MyOrange As Int = Colors.RGB(255,255,165) Dim MyOrangeT As Int = Colors.ARGB(128,255,255,165) Perhaps you could have a radio button option which selects the desired format, HTML hex, RGB or ARGB. That would be much more useful.
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2016 #2 You can also write: Code: Copy Dim MyOrange As Int = 0xFFFAC50A Activity.Color = MyOrange 'Or Activity.Color = 0xFFFAC50A
You can also write: Code: Copy Dim MyOrange As Int = 0xFFFAC50A Activity.Color = MyOrange 'Or Activity.Color = 0xFFFAC50A