LAMW: jSpinner down arrow lazarus / 43-Android ---------------------------------------------------------------------- c4p · 2021-11-05 23:22 Returning to Lazarus/LAMW after a hiatus and can see great progress that has been made with LAMW, very well done! I did notice that the jSpinner doesn't seem to flip the down arrow contrast when the DropListBackgroundColor is set to colbrBlack (arrow should be white?), as the arrow is no longer visible, as it is already statically set to black or dark grey? which makes it looks like an Edit box when the app is running. I have a Panel background set to black with a jSpinner on it and the DropListBackgroundColor set to Black which results in no down arrow being visible, hope this makes sense. Wish I could fix this myself. Although this may be just me, when I try and assign a custom color say on BackgroundColor using jEditText, jAutoviewText etc. it seems to select the nearest color rather than the custom RGB set, this seems to be the case across LAMW, I need this to set my jEditText/jAutoTextView to a slightly off Black colour to blend better rather than one of the fixed colors. Custom color seems to work/assign OK in FCL. This is not the end of the world for me, but would be a nice to have, but may be like this by design in LAMW. Thanks in advance for assistance. ---------------------------------------------------------------------- c4p · 2021-11-08 23:43 ---------------------------------------------------------------------- jmpessoa · 2021-11-09 03:02 Hi, c4p! Sorry.... Soon I will try some solution as soon as my "master" computer comes back from a repair. ---------------------------------------------------------------------- c4p · 2021-11-09 22:18 Sorry to hear about your computer issues jmpessoa. ---------------------------------------------------------------------- jmpessoa · 2021-11-15 06:00 Hi! My "master" computer comes back from repair !!!! QuoteI did notice that the jSpinner doesn't seem to flip the down arrow contrast when the DropListBackgroundColor is set to colbrBlack (arrow should be white?), as the arrow is no longer visible, New! You can try: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin   jSpinner1.SetColorFilter(colbrBlue);  //or other color....end; ---------------------------------------------------------------------- c4p · 2021-11-15 07:40 Excellent, I will try this tonight.  Quote from: jmpessoa on November 15, 2021, 07:00:38 amHi! My "master" computer comes back from repair !!!! QuoteI did notice that the jSpinner doesn't seem to flip the down arrow contrast when the DropListBackgroundColor is set to colbrBlack (arrow should be white?), as the arrow is no longer visible, New! You can try: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin   jSpinner1.SetColorFilter(colbrBlue);  //or other color....end; ---------------------------------------------------------------------- jmpessoa · 2021-11-15 18:28 Quotewhen I try and assign a custom color say on BackgroundColor using jEditText, jAutoviewText etc. it seems to select the nearest color rather than the custom RGB set, this seems to be the case across LAMW, I need this to set my jEditText/jAutoTextView to a slightly off Black colour to blend better rather than one of the fixed colors. about: https://forum.lazarus.freepascal.org/index.php/topic,38482.msg261437.h tml#msg261437 A very simple solution: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //https://coderwall.com/p/dedqca/argb-colors-in- android//https://stackoverflow.com/questions/5445085/understanding- colors-on-android-six-characters/25170174#25170174{AA - Alpha component [0..255] of the colorRR - Red component [0..255] of the colorGG - Green component [0..255] of the colorBB - Blue component [0..255] of the color}//https://www.rapidtables.com/web/color/RGB_Color.htmlprocedure TAndroidModule1.jButton1Click(Sender: TObject);begin    jTextView1.CustomColor:= $FFA0C456;   jTextView1.FontColor:= colbrCustom;    jPanel1.CustomColor:= $FFE5FFFF;   jPanel1.BackgroundColor:= colbrCustom;     jEditText1.CustomColor:= $FFC49C56;   jEditText1.FontColor:= colbrCustom;     jButton1.CustomColor:= $FFC49C56;   jButton1.BackgroundColor:=colbrCustom;    jButton1.CustomColor:= $FFA0C456;   jButton1.FontColor:= colbrCustom;end; ---------------------------------------------------------------------- c4p · 2021-11-15 20:40 Ah yes, just didn't set the custom color in the GUI. Quote from: jmpessoa on November 15, 2021, 07:28:05 pmQuotewhen I try and assign a custom color say on BackgroundColor using jEditText, jAutoviewText etc. it seems to select the nearest color rather than the custom RGB set, this seems to be the case across LAMW, I need this to set my jEditText/jAutoTextView to a slightly off Black colour to blend better rather than one of the fixed colors. about: https://forum.lazarus.freepascal.org/index.php/topic,38482.msg261437.h tml#msg261437 A very simple solution: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //https://coderwall.com/p/dedqca/argb-colors-in- android//https://stackoverflow.com/questions/5445085/understanding- colors-on-android-six-characters/25170174#25170174{AA - Alpha component [0..255] of the colorRR - Red component [0..255] of the colorGG - Green component [0..255] of the colorBB - Blue component [0..255] of the color}//https://www.rapidtables.com/web/color/RGB_Color.htmlprocedure TAndroidModule1.jButton1Click(Sender: TObject);begin    jTextView1.CustomColor:= $FFA0C456;   jTextView1.FontColor:= colbrCustom;    jPanel1.CustomColor:= $FFE5FFFF;   jPanel1.BackgroundColor:= colbrCustom;     jEditText1.CustomColor:= $FFC49C56;   jEditText1.FontColor:= colbrCustom;     jButton1.CustomColor:= $FFC49C56;   jButton1.BackgroundColor:=colbrCustom;    jButton1.CustomColor:= $FFA0C456;   jButton1.FontColor:= colbrCustom;end;