Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ogizanagi
Copy link
Contributor

@ogizanagi ogizanagi commented Jun 3, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

When using the profiler with a dark theme,
the Messenger panel was missing using the dedicated vars and was still using a light bg:

Capture d’écran 2022-06-03 à 09 56 42

and the selected lines on file excerpts (for any panel) are not contrasted enough:

Capture d’écran 2022-06-03 à 09 56 57

I suggest using a more contrasted highlight color for selected lines:

Capture d’écran 2022-06-03 à 09 56 07

@fabpot
Copy link
Member

fabpot commented Jun 3, 2022

Thank you @ogizanagi.

@fabpot fabpot merged commit 573d3ea into symfony:4.4 Jun 3, 2022
@ogizanagi ogizanagi deleted the profiler-selected-line-color branch June 3, 2022 13:01
fabpot added a commit that referenced this pull request Jun 5, 2022
…source code (ogizanagi)

This PR was squashed before being merged into the 6.2 branch.

Discussion
----------

[Serializer][WebProfilerBundle] Collect & show caller source code

| Q             | A
| ------------- | ---
| Branch?       | 6.2 <!-- see below -->
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

As for the Messenger and Validator panels, knowing from which code was called the Serializer's methods and jumping to it in one click is useful to get a better understanding of each collected rows and their context.

![Capture d’écran 2022-06-03 à 09 32 00](https://user-images.githubusercontent.com/2211145/171818770-5be7e8a6-d35e-47d4-92e1-f170375ffe41.png)

![Capture d’écran 2022-06-03 à 09 46 43](https://user-images.githubusercontent.com/2211145/171818809-47f562e5-0356-41db-ac6a-3fbd52bf3651.png)

![Capture d’écran 2022-06-03 à 10 34 26](https://user-images.githubusercontent.com/2211145/171819170-cfc39261-a7e7-412f-8fdc-07ee1771d5ee.png)

---

the second commit relates to #46565

Commits
-------

0a20712 Fix dark theme highlight color & reuse css vars
83412d2 [Serializer][WebProfilerBundle] Collect & show caller source code
@fabpot fabpot mentioned this pull request Jun 9, 2022
This was referenced Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants