Mopups icon indicating copy to clipboard operation
Mopups copied to clipboard

opaque background no longer supported on android

Open jrboyer opened this issue 1 year ago • 17 comments

BackgroundColor="#80000000" used to provide a way to make the popup opaque to the background. This appears to no longer be the case in the latest version (1.3)

jrboyer avatar Jan 23 '24 19:01 jrboyer

I've went back to version 1.1.1 and also there the backgroundcolor does not work on Android

FrankVDL-ZC avatar Jan 24 '24 12:01 FrankVDL-ZC

I updated to .net 8 from .7, and at that point updated the package as well. I can't say precisely when this was broken, but it is most definitely broken in 1.3, and this flaw makes mopups essentially unusable for android.

jrboyer avatar Jan 24 '24 14:01 jrboyer

Similar issue on iOS as well

wint100 avatar Jan 25 '24 21:01 wint100

Until now I was using 1.2.0 version and the BackgroundColor property in a mopup worked correctly on all platforms..

Upgrading to 1.3.0 does not work on Windows either.

Victor-Porter avatar Jan 26 '24 16:01 Victor-Porter

does the 1.2 version work with .net8.0? I hate to downlevel because ne8.0 addresses some issues for me.

jrboyer avatar Jan 28 '24 19:01 jrboyer

does the 1.2 version work with .net8.0? I hate to downlevel because ne8.0 addresses some issues for me.

Yes

Victor-Porter avatar Jan 29 '24 09:01 Victor-Porter

Huh, okay, i'll jump on this pain point.

Just some quick checks, can anyone download the project and make it a project reference instead of a nuget reference

Then go to the PopupPage.cs file, in its constructors, revert backgroundColor to set itself as Color.FromArgb("#80000000");

This was changed to help get a transparent background for iOS.

LuckyDucko avatar Jan 30 '24 01:01 LuckyDucko

I'm on a tight deadline for something else ATM, but I'll get this information to you before 8:00 AM 1/31.

jrboyer avatar Jan 30 '24 15:01 jrboyer

If you live in Hawaii, this will be on time, based on projection above, which has no TZ...

Anyway, this does does not appear to make any difference on android. I don't currently develop for iOS, so I can't help you there.

jrboyer avatar Jan 31 '24 20:01 jrboyer

Sorry, hit wrong button. Definitely not closed.

jrboyer avatar Jan 31 '24 20:01 jrboyer

I have verified that background color as transparent in android still works in 1.2 and 1.1.1 it definitely does not work in 1.3

jrboyer avatar Feb 04 '24 19:02 jrboyer

I don't understand this report

BackgroundColor="#80000000" used to provide a way to make the popup opaque to the background

well, what you wrote there is a transparent color, so naturally it shouldn't be "opaque"?

MitchBomcanhao avatar Feb 21 '24 09:02 MitchBomcanhao

I just tried BackgroundColor="#88000000" in Mopups 1.3.0 and Maui 8.0.7, and the background is correctly partially transparent, while the popup itself is fully opaque, as expected.

Could someone explain what the poster means by "the popup should be opaque to the background"?

BlueRaja avatar Mar 14 '24 07:03 BlueRaja

@BlueRaja it's work on 1.3.1 and Maui 8.0.10 also

andreptcosta avatar Mar 18 '24 18:03 andreptcosta

I just tried BackgroundColor="#88000000" in Mopups 1.3.0 and Maui 8.0.7, and the background is correctly partially transparent, while the popup itself is fully opaque, as expected.

Could someone explain what the poster means by "the popup should be opaque to the background"?

Sure. using #80000000 for background used to produce an effect where the full page background was visible EXCEPT the area covered by the Popup was opaque. In the version(s) noted, the entire background is now transparent, INCLUDING the Popup area, which leads to very ugly looking inputs.

jrboyer avatar Apr 17 '24 17:04 jrboyer

Not sure if this is what they are talking about but on Android and iOS when the popup shows the page behind the popup doesn't dim or fade. The page behind the popup should dim so the popup sticks out more.

thedee avatar Sep 23 '24 19:09 thedee

@thedee can you create a repo.

Ive been using it for android and iOS for about a year now, and the background works as expected

IeuanWalker avatar Sep 23 '24 19:09 IeuanWalker