Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feature #27678 Allow to configure some options of the profiler interf…
…ace (javiereguiluz) This PR was squashed before being merged into the 4.2-dev branch (closes #27678). Discussion ---------- Allow to configure some options of the profiler interface | Q | A | ------------- | --- | Branch? | master | Bug fix? | yno | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR adds some configurable options for the interface of the Symfony profiler. First, you can configure the theme. The current one remains as the default light theme, but there's a new dark theme. A quick comparison: ![theme-light](https://user-images.githubusercontent.com/73419/41765883-ad2f9e6a-7605-11e8-87fb-881afbffc788.png) ![theme-dark](https://user-images.githubusercontent.com/73419/41765888-af597800-7605-11e8-9097-eb9667b82136.png) The second option is the width of the profiler pages. The current normal width remains as the default, but there's a new dynamic width that is as width as the browser window. The "Performance" panel is the one where this option makes more sense. A quick comparison when using a 2560 x 1440 resolution: ![settings-width-normal](https://user-images.githubusercontent.com/73419/41765890-b4affe14-7605-11e8-80b9-99ca54b07b83.png) ![settings-width-wide](https://user-images.githubusercontent.com/73419/41765891-b6506876-7605-11e8-95c4-664b1fb0f3dd.png) All settings are managed by JavaScript and persisted in localStorage, so everything is fast and simple: ![settings-in-action](https://user-images.githubusercontent.com/73419/41765926-ce04f31a-7605-11e8-93f4-a7f810f034a5.gif) ----- Note to reviewers: * This is the first draft of the PR. * I expect: approval/rejection of this idea and general comments of the proposed solution. Once this is accepted, I will finish the feature tweaking/fixing the design and the HTML/CSS/JS/Twig code. Don't comment on those details for now. Thanks! Commits ------- 944c53f Allow to configure some options of the profiler interface
- Loading branch information