-
-
Notifications
You must be signed in to change notification settings - Fork 143
Prepare for new toolbar #217
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
Conversation
Is that BC with older toolbar too? |
@soullivaneuh yes, the Using this variable, you can support different versions of the toolbar. E.g. when version 3 comes out, you have:
|
Okay nice idea. But just major versions? |
Note: Will review this when symfony/symfony#15160 will be merged. |
@soullivaneuh toolbar markup version is not bound to Symfony's version. If "3", it just means it's the 3th design of the toolbar (that can already happen in 3.1 for instance). |
I'm not talking about Symfony version but semantic versioning itself. ;-) |
Ah, in that case: Yes :) (there aren't going to be much redesigns that require markup changes). |
And for the second point, maybe we could put a more explicit icon that Sonata logo. Like this one for example: http://fontawesome.io/icon/cubes/ ping @rande. |
@wouterj yep you can change the icon as @soullivaneuh suggest. |
@wouterj SVG format can be found here: https://github.com/FortAwesome/Font-Awesome/blob/master/fonts/fontawesome-webfont.svg |
ok to test |
1 similar comment
ok to test |
077d8e3
to
7dcfb9d
Compare
I like the suggestion of changing the icon to something more describing. I changed it to another icon than the one suggested, as I find the style of this icon more consistent with the other icons and it looks better when it's just 24x24. This is also the icon used on the sonata-project.org website. Btw, @soullivaneuh, the official sonata project logo is cropped: https://sonata-project.org/bundles/sonatageneral/images/logo.png |
Ok for the logo |
Yes, and it's not adapted for the toolbar IMHO. OK for the logo too, but I would like you to remove "blocks" and setup number rendering as other components: Like doctrine does. |
<div class="sf-toolbar-block"> | ||
{% if profiler_markup_version == 1 %} | ||
<div class="sf-toolbar-icon"> |
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.
Should be indented.
Thanks @soullivaneuh, I've fixed the remaining issues. Please note that the number shown is already equal to the other numbers. The doctrine panel, as shown in each screenshot in this PR, uses the old style. You can see the new styles here: symfony/symfony#15160 I've removed "blocks" though. |
Thank you @wouterj. |
Thanks @soullivaneuh for your review & merge! |
Prepare for the new toolbar design: symfony/symfony#15160
I created the SVG from the PNG logo, if you have a proper SVG file, it should be used instead.