S stanks Active Member Licensed User Longtime User Nov 30, 2023 #1 Hi In designer i added one B4XComboBox and i set text color to black and background to lightgray (#FFD3D3D3). In code i set dialog background to lightgray too (Dialog.BackgroundColor = Colors.LightGray) and when i run app colors are different (at least on emulator...i didn't try it yet on real device) When i set combo background as transparent everything is ok (ofc). Is that a bug/emu problem/something else/i am doing something wrong? Thanks
Hi In designer i added one B4XComboBox and i set text color to black and background to lightgray (#FFD3D3D3). In code i set dialog background to lightgray too (Dialog.BackgroundColor = Colors.LightGray) and when i run app colors are different (at least on emulator...i didn't try it yet on real device) When i set combo background as transparent everything is ok (ofc). Is that a bug/emu problem/something else/i am doing something wrong? Thanks
P PaulMeuris Well-Known Member Licensed User Dec 2, 2023 #2 In the designer you have set the color of the B4XComboBox1 to lightgray in the layout for the dialog. If you set the color of the activity in that same layout to the same color lightgray then the B4XCombobox has the same background color. Attachments 1701523616933.png 5.2 KB · Views: 474 1701523773591.png 5.2 KB · Views: 511 Upvote 0
In the designer you have set the color of the B4XComboBox1 to lightgray in the layout for the dialog. If you set the color of the activity in that same layout to the same color lightgray then the B4XCombobox has the same background color.
S stanks Active Member Licensed User Longtime User Dec 2, 2023 #3 Setting dialog background with Code: Dialog.BackgroundColor = Colors.LightGray will show diff in LightGray colors, but setting dialog background color with Code: Dialog.BackgroundColor = Colors.RGB(211, 211, 211) will not show any diff. @Erel is that a BUG or? Upvote 0
Setting dialog background with Code: Dialog.BackgroundColor = Colors.LightGray will show diff in LightGray colors, but setting dialog background color with Code: Dialog.BackgroundColor = Colors.RGB(211, 211, 211) will not show any diff. @Erel is that a BUG or?
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2023 #4 The right hand side expression is evaluated and the value is set to the property. In this case the values are different: Code: Log(Colors.LightGray) Log(Colors.RGB(211, 211, 211)) Tip: use XUI.Colors... and get used to writing cross platform code. Upvote 0
The right hand side expression is evaluated and the value is set to the property. In this case the values are different: Code: Log(Colors.LightGray) Log(Colors.RGB(211, 211, 211)) Tip: use XUI.Colors... and get used to writing cross platform code.