Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide action bar to avoid shadow creeping into images captured using captureRoboImage #283

Merged

Conversation

lukas-mercari
Copy link
Contributor

I tried out shadow rendering as outlined in #273 and noticed that there's a shadow from the top when using captureRoboImage with a composable parameter. This is visible in the diff for manual_compose in #273.
It seems that it's caused by the action bar of RoborazziTransparentActivity rendering right above the composable and thus "leaking" a shadow into the screenshot.

I tested the change by applying it on top of #273.

@takahirom
Copy link
Owner

I didn't notice this. Looks great!

@takahirom takahirom merged commit 831a45d into takahirom:main Mar 27, 2024
5 checks passed
@takahirom
Copy link
Owner

@lukas-mercari Thanks for your contribution!

github-merge-queue bot pushed a commit to slackhq/circuit that referenced this pull request Apr 12, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[io.github.takahirom.roborazzi](https://togithub.com/takahirom/roborazzi)
| plugin | minor | `1.11.0` -> `1.12.0` |
|
[io.github.takahirom.roborazzi:roborazzi-junit-rule](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.11.0` -> `1.12.0` |
|
[io.github.takahirom.roborazzi:roborazzi-compose](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.11.0` -> `1.12.0` |
|
[io.github.takahirom.roborazzi:roborazzi](https://togithub.com/takahirom/roborazzi)
| dependencies | minor | `1.11.0` -> `1.12.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>takahirom/roborazzi (io.github.takahirom.roborazzi)</summary>

###
[`v1.12.0`](https://togithub.com/takahirom/roborazzi/releases/tag/1.12.0)

[Compare
Source](https://togithub.com/takahirom/roborazzi/compare/1.11.0...1.12.0)

##### Bug Fixes

- Fixed an issue where recorded images with a transparent background and
a scaling option (e.g., 0.5F) were always detected as changes. Thanks
for reporting this, [@&#8203;yongsuk44](https://togithub.com/yongsuk44)!
- Addressed a bug related to `robolectric.screenshot.hwrdr.native`
introduced in [Robolectric
4.12](https://togithub.com/takahirom/roborazzi/issues/296#issuecomment-2049440301),
which caused unwanted shadows when using Compose's `roboCaptureImage{}`
with this new option. This has now been corrected by
[@&#8203;lukas-mercari](https://togithub.com/lukas-mercari). Thanks for
your contribution!

##### What's Changed

- Hide action bar to avoid shadow creeping into images captured using
captureRoboImage by
[@&#8203;lukas-mercari](https://togithub.com/lukas-mercari) in
[takahirom/roborazzi#283
- \[CI]Compare with base branch by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#284
- update robolectric version from 4.10.3 to 4.12.1 by
[@&#8203;sanao1006](https://togithub.com/sanao1006) in
[takahirom/roborazzi#289
- Add roundTransparentResizeCompose test by
[@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#297
- Fix false positive issue in verification of scaled transparent images
by [@&#8203;takahirom](https://togithub.com/takahirom) in
[takahirom/roborazzi#298

##### New Contributors

- [@&#8203;lukas-mercari](https://togithub.com/lukas-mercari) made their
first contribution in
[takahirom/roborazzi#283

**Full Changelog**:
takahirom/roborazzi@1.11.0...1.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODcuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI4Ny4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants