Page 2 of 2

Re: Browser widget background color change

Posted: Sat Mar 16, 2019 1:58 pm
by [-hh]
@Youks.
Nothing complicated. This fades in within 1 second. Shorten the waiting time to have it faster:

Code: Select all

on openCard
  set the htmltext of widget "browser" to \
        "<html><head><style> body{ color:white; font-family:Arial; " & \
        "font-size: 17px;line-height:1.4; text-wrap:normal;}</style>" & \
        "<meta name='viewport' content='device-width, " & \
        "initial-scale=1.0, user-scalable=no'/></head>" & \
        "<body></body></html>"
  repeat with i=254 down to 0
    do "document.body.style.backgroundColor= " & \
          "'rgb("&(i,i,i)&")';" in widget "browser"
    wait 4 millisecs with messages
  end repeat
end openCard
@Richmond.
Setting the ink or the blendlevel doesn't work for native displays.

Re: Browser widget background color change

Posted: Sat Mar 16, 2019 3:48 pm
by richmond62
Setting the ink or the blendlevel doesn't work for native displays.
Aha.

So why the "figgy pudding" is that possibility presented in the Properties Palette?

Re: Browser widget background color change

Posted: Sat Mar 16, 2019 5:55 pm
by jacque
Just a guess, but try hiding the widget on preopencard, setting the html, and then using "show widget browser in xx milliseconds" in the opencard handler.

Re: Browser widget background color change

Posted: Sat Mar 16, 2019 8:04 pm
by Youks
None of the options worked. The best way is to keep the background color of the widget to white .......Anytime different from white the issue is noticeable.

Thx for All.