B4J Question [SOLVED] [ABMaterial] Can a Gradient be set to Page Background?

Cableguy

Expert
Licensed User
Longtime User
Hi ABM Gurus!!

I am trying to restart a few forgotten projects using ABM, and as usual, trying to do with it what it was not indented to do.
SO my new "quest" is..... can a gradient be set as page.BackgroundColor?
I understand that using Canvas it can (maybe) achieve that, but the memory needed worries me!
Any other trick, besides using an image as page Background?

Thanks in Advance
 
Solution
try in Connect_Page first thing:

B4X:
Dim script As String = $"$('body').css("background-image", "linear-gradient(lightblue, darkblue)");
$('body').css("min-height", "100vh")"$
    
page.ws.Eval(script, Null)
page.ws.Flush

Cableguy

Expert
Licensed User
Longtime User
Hi, Thanks for your reply....
So I would need to use B4JS?
Do you have a simple example?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I will, if I can get ABMaterial working again.... I think I broke it beyond repair.....
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I can confirm that works!
Is there a way to add that too to the
B4X:
  $('#login-content').removeClass('transparent').addClass('white');"$
Part of this, so that I can apply a complementary gradient to the modal sheet?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
yes i did, and it "Nulls" the whole line bringing back the straight corners.
 
Upvote 0
Top