From 013c265a3602fef6eded952b986c205b7a2d5c6d Mon Sep 17 00:00:00 2001 From: sean kelly Date: Thu, 11 Jul 2024 16:59:37 +0100 Subject: [PATCH] The radius blurring has been adjusted in iOS to match the styling in Android --- apps/ui/src/text-view/scrolling-and-sizing-page.css | 6 +++++- apps/ui/src/text-view/scrolling-and-sizing-page.xml | 2 +- packages/core/ui/styling/background.ios.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/ui/src/text-view/scrolling-and-sizing-page.css b/apps/ui/src/text-view/scrolling-and-sizing-page.css index 2cbc719a42..ff0ac7c1b9 100644 --- a/apps/ui/src/text-view/scrolling-and-sizing-page.css +++ b/apps/ui/src/text-view/scrolling-and-sizing-page.css @@ -2,6 +2,10 @@ padding: 10 20 10 20; } +.p-20 { + padding: 20; +} + .m-b-10 { margin-bottom: 10; } @@ -47,7 +51,7 @@ TextView { } .shadow { - box-shadow: inset 0 0 5 5 #000000; + box-shadow: 2 2 6 6 #ff0000; } .body { diff --git a/apps/ui/src/text-view/scrolling-and-sizing-page.xml b/apps/ui/src/text-view/scrolling-and-sizing-page.xml index be32029ca1..d7ccf22361 100644 --- a/apps/ui/src/text-view/scrolling-and-sizing-page.xml +++ b/apps/ui/src/text-view/scrolling-and-sizing-page.xml @@ -36,7 +36,7 @@ - + diff --git a/packages/core/ui/styling/background.ios.ts b/packages/core/ui/styling/background.ios.ts index 4b0f42b6c3..d82f026977 100644 --- a/packages/core/ui/styling/background.ios.ts +++ b/packages/core/ui/styling/background.ios.ts @@ -1140,7 +1140,7 @@ function drawBoxShadow(view: View): void { // Shadow opacity is handled on the shadow's color instance shadowLayer.shadowOpacity = boxShadow.color?.a ? boxShadow.color.a / 255 : 1; - shadowLayer.shadowRadius = shadowRadius; + shadowLayer.shadowRadius = shadowRadius * 0.65; shadowLayer.shadowColor = boxShadow.color?.ios?.CGColor; shadowLayer.shadowOffset = CGSizeMake(offsetX, offsetY); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy