fix(android): apply robust static RGB colors and compatible background opacity fallback

This commit is contained in:
Daniel Arantes Loverde
2026-05-27 14:38:02 -03:00
parent 68864ee21a
commit c14bd7a928
2 changed files with 23 additions and 15 deletions

View File

@@ -43,6 +43,13 @@ struct LoginView: View {
(colorScheme == .dark ? Color.black : AppColors.backgroundLight)
.ignoresSafeArea()
#if os(Android)
pinHeroImage
.scaledToFill()
.frame(height: heroHeight + 80)
.offset(y: heroVisible ? -60 : -(heroHeight + 220))
.opacity(colorScheme == .dark ? 0.08 : 0.15)
#else
pinHeroImage
.scaledToFill()
.frame(height: heroHeight + 80)
@@ -54,6 +61,7 @@ struct LoginView: View {
endPoint: .bottom
)
)
#endif
VStack(spacing: 18) {
Spacer().frame(height: logoTopInset)