-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Profiler] Fix dark theme elements color #30860
Conversation
Can you paste some before/after screenshots? |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
Outdated
Show resolved
Hide resolved
The red text on dark background for the exception message does not have enough contrast to be readable (and this gets even worse for color-blind people). As that's the most important part of the content, that should be changed. |
@@ -183,6 +186,12 @@ | |||
h3.form-data-type + h3 { | |||
margin-top: 1em; | |||
} | |||
.theme-dark .toggle-icon { | |||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAKrWlDQ1BpY2MAAEiJlZcHUJPZFsfv96U3WgLSCb0jvUoJPRRBOtgISSChhJiCitgRV3AtiIiAuqCrFAVFKbJWLFhYFOx1gywK6rpYsKHmfcgj+N7Mmzd7Zs53f3Pm3v859869M+cDgPyRJRRmwyoA5AgkopgQf3pScgodNwggAAMCoAM7FlssZERHRwDEpsYfDALg/e2JLwA3bCe0wD8zVQ5XzEZkohFO44jZOQgfQ1zGFookAKDKkLjxYolwgjsQpomQAhHumeCMSZZNcNokv/s+Jy4mAAA0HgA8mcUSZQBApiFxeh47A9EhOyNsL+DwBQhzEPZh81jISN6HsE1OTu4EX0fYIu0HnYz/0ExTaLJYGQqe3Mt3wwfyxcJs1tJ/eBz/33KypVM5zBAn80ShMRP5kDO7m5UbrmBB2uyoKeZzJmuaYJ40NH6K2eKAlCnmsALDFWuzZ0dMcTo/mKnQkTDjppgrDoqdYlFujCJXuiiAMcUs0XReaVa8Is7j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UgADYxMuE0sTS6NEAwMDCwMIMDQwMDYEkkZAtjlUKNEABZgamFmaGZsZmgMxiM8FAEi2FMk61EMyAAAA2klEQVRIiWM0s7T7z8DAwCAiIvzH1Nhoi6SEaHVGRsY1BhygvqF5/emz53zevHnLwsDAwMBgZmn3PyUt+wUuDbhASlr2CzNLu/8MXr6Bv0nVDANevoG/mUyNjbaQa4CpsdEWJkkJ0WpyDaBEL/UAI7rA/////+PVwMiIooeJ2i4aADBjxgwtSvQyPX/xupVcA56/eN3KdPrsOR9yDTh99pwP05s3b1nIzUxv3rxlYaQ0O1OeDoZ5efAfCnDJEywPCBnAwECFWBjk5QFdwoCJpuUBIxTgkh8m5QEA4ESeKl1VgwMAAAAASUVORK5CYII='); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
931d684
to
2aa3a5e
Compare
Is this one ready? |
@stof I've added more contrast for the red color, not only for the exception title, but for all red text (ref updated pictures) |
2aa3a5e
to
8a9c2c8
Compare
Thank you @dFayet. |
This PR was squashed before being merged into the 4.2 branch (closes #30860). Discussion ---------- [Profiler] Fix dark theme elements color | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #29194 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - I think the color handling of the code highlighted (exceptions, ...) is quite questionnable, but as we use the `highlight_file()` function, I don't really see an other way to handle it, tell me what you think. ### Before/After **Form** ![Capture d’écran de 2019-04-04 10-07-18](https://user-images.githubusercontent.com/7721219/55539945-2cfe0580-56c2-11e9-8e5c-a4b6352ab12d.png) ![Capture d’écran de 2019-04-04 10-03-27](https://user-images.githubusercontent.com/7721219/55539906-15268180-56c2-11e9-90e7-326cc1c01ccd.png) **Twig render graph** ![Capture d’écran de 2019-04-04 10-07-36](https://user-images.githubusercontent.com/7721219/55539969-3b4c2180-56c2-11e9-9064-1fd10bf1da02.png) ![Capture d’écran de 2019-04-06 19-37-02](https://user-images.githubusercontent.com/7721219/55673094-693c8c00-58a3-11e9-90a4-76f6b312d516.png) **Exceptions** ![Capture d’écran de 2019-04-04 10-08-19](https://user-images.githubusercontent.com/7721219/55540012-51f27880-56c2-11e9-930b-98d680093e49.png) ![Capture d’écran de 2019-04-06 09-39-27](https://user-images.githubusercontent.com/7721219/55667421-4f2b8b00-585c-11e9-81c7-dc09bd982375.png) **Doctrine queries** ![Capture d’écran de 2019-04-04 10-08-37](https://user-images.githubusercontent.com/7721219/55540059-73536480-56c2-11e9-9b0d-ea691a16a1a5.png) ![Capture d’écran de 2019-04-04 10-04-47](https://user-images.githubusercontent.com/7721219/55540068-78b0af00-56c2-11e9-88f7-2181800006a7.png) Commits ------- 8a9c2c8 [Profiler] Fix dark theme elements color
This PR was merged into the 4.2 branch. Discussion ---------- Fix dark themed componnents | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | yes/no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Small follow up of #30860 ![image](https://user-images.githubusercontent.com/1047696/55705391-f5070300-59de-11e9-8d7e-195ea74d17c3.png) see #29194 (comment) ___ ![image](https://user-images.githubusercontent.com/1047696/55705263-b40eee80-59de-11e9-9503-ba4adf64857c.png) see #29194 (comment) Commits ------- d2f2e56 Fix dark themed componnents
I think the color handling of the code highlighted (exceptions, ...) is quite questionnable, but as we use the
highlight_file()
function, I don't really see an other way to handle it, tell me what you think.Before/After
Form
![Capture d’écran de 2019-04-04 10-07-18](https://user-images.githubusercontent.com/7721219/55539945-2cfe0580-56c2-11e9-8e5c-a4b6352ab12d.png)
Twig render graph
![Capture d’écran de 2019-04-04 10-07-36](https://user-images.githubusercontent.com/7721219/55539969-3b4c2180-56c2-11e9-9064-1fd10bf1da02.png)
Exceptions
![Capture d’écran de 2019-04-04 10-08-19](https://user-images.githubusercontent.com/7721219/55540012-51f27880-56c2-11e9-930b-98d680093e49.png)
Doctrine queries
![Capture d’écran de 2019-04-04 10-08-37](https://user-images.githubusercontent.com/7721219/55540059-73536480-56c2-11e9-9b0d-ea691a16a1a5.png)