redth-org / BTProgressHUD

Port to Xamarin.iOS of the SVProgressHUD
Other
118 stars 64 forks source link

How to change background color of ProgressHud ? #63

Closed tornikegomareli closed 1 year ago

tornikegomareli commented 6 years ago

In default my progresshud's background color is white.

How can I change it ?

Yohandah commented 6 years ago

Same problem here, background is white, doesn't know how to change it

alastor09 commented 6 years ago

You can use below path to change the background color of HUD BigTed.ProgressHUD.Shared.HudBackgroundColour = <YourColor>

michaelmontero commented 6 years ago

This issue should be close.

darshb commented 5 years ago

BigTed.ProgressHUD.Shared.HudBackgroundColour = UIColor.Black Above code not working when application is killed and launched again. Its not showing color which is set for supporting dark mode. Its showing white color only.

ChrisMISDB commented 1 year ago

Not to resurrect a dead thread, but this doesn't work in the new MAUI compatible version. Is there any update on how to update the HudBackgroundColor and HudForegroundColor?

Thanks!

Cheesebaron commented 1 year ago

HudForegroundColor is for the text color

Try: ProgressHUD.Shared.Ring.Color = UIColor.Green

ChrisMISDB commented 1 year ago

Thanks, but it isn't the issue of which items I can't change the colors on. The problem is that ProgressHUD.Shared doesn't appear to exist in the newest version that's compatible with MAUI

Cheesebaron commented 1 year ago

OK, I gut the issue now!

So it seems @Redth changed some of this in: https://github.com/redth-org/BTProgressHUD/commit/9a3b340a252659ec9a4085f7ec238254f157576b where he modernized the API.

So instead of calling ProgressHUD.Shared you will call ProgressHUD.For(window) or ProgressHUD.ForDefaultWindow() and then customize the properties on that instance.

Your issue is unrelated to the original issue in this thread. So I will close this one, but feel free to open a new issue explaining in more details what the problem is.