Skip to content

Inset box shadow impl#45337

Closed
joevilches wants to merge 2 commits into
facebook:mainfrom
joevilches:export-D59300215
Closed

Inset box shadow impl#45337
joevilches wants to merge 2 commits into
facebook:mainfrom
joevilches:export-D59300215

Conversation

@joevilches
Copy link
Copy Markdown
Contributor

Summary:
tsia. Some things to consider when reviewing:

  • Made a new drawable for inset shadows
  • The drawable in this class is the same size as the view with some padding. The padding is needed for 2 reasons
    • Blur near edges looks good
    • Blur artifacts can appear inside the view if the clear region barely exits the bounds of the view
  • We draw the clear shape with another drawable, which solely exists so that we can get the border box path for the adjust border. We just use this path to clip out the shadow

Differential Revision: D59300215

Differential Revision: D59296120
Summary:
tsia. Some things to consider when reviewing:

* Made a new drawable for inset shadows
* The drawable in this class is the same size as the view with some padding. The padding is needed for 2 reasons
  * Blur near edges looks good
  * Blur artifacts can appear inside the view if the clear region barely exits the bounds of the view
* We draw the clear shape with another drawable, which solely exists so that we can get the border box path for the adjust border. We just use this path to clip out the shadow

Differential Revision: D59300215
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 9, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59300215

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 65a3259.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @joevilches in 65a3259.

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants