Match the profiler toolbar icon to the Symfony core icons - #464
Merged
Conversation
The PWA icon shipped for the web debug toolbar was an SVG Repo export of the PWA logo: an 800x800 drawing on a `0 -159.5 512 512` viewBox, painted with the fixed brand colours `#3D3D3D` and `#5A0FC8`. Because of the fixed colours the icon could not inherit the toolbar foreground colour, so it stayed dark grey and purple whatever the theme, and turned nearly invisible on the dark toolbar. The oversized viewBox also made it sit differently from the core items, and the XML prolog was inlined as-is into the HTML page by `source()`. The drawing is now normalised to the 24x24 grid used by the WebProfilerBundle icons, vertically centred, and painted with `currentColor` so it follows the toolbar foreground in both the light and the dark themes.
Spomky
added a commit
that referenced
this pull request
Aug 16, 2026
* 1.5.x: Match the profiler toolbar icon to the Symfony core icons (#464)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same fix as web-token/jwt-framework#671, applied here: the toolbar icon did not match the styling of the Symfony core toolbar items.
The label was already using
sf-toolbar-value, so only the icon was affected.Before
templates/Collector/pwa.svgwas an SVG Repo export of the PWA logo:800x800drawing on a0 -159.5 512 512viewBox, so it did not sit on the same grid as the WebProfilerBundle icons;#3D3D3Dand#5A0FC8, so it could not inherit the toolbar foreground colour — it stayed dark grey and purple whatever the theme, and was close to invisible on the dark toolbar;source()inlined as-is into the HTML page.After
The drawing is normalised to the 24x24 grid used by the WebProfilerBundle icons, vertically centred, and painted with
currentColorso it follows the toolbar foreground in both the light and the dark themes. The prolog is gone.Rendering-only change: no behaviour and no public API is touched, and the two
source()call sites intemplates/Collector/template.html.twigare unchanged.