Skip to content

Conversation

@elliette
Copy link
Member

@elliette elliette commented Jul 10, 2025

Fixes #8243

Previously, the IDEs passed their current font size to embedded DevTools via a query param. DevTools would then try to scale all UI elements by the ratio of the IDE font size to the default font size.

However, this resulted in strange UI element sizing - some elements were scaled too large, and others were not being scaled at all.

Instead, the IDEs now handle scaling the embedded DevTools panel themselves, and no longer pass in the font size as a query parameter to DevTools (see VS Code change, IntelliJ change).

Therefore this PR:

  • removes the font size query param
  • removes the font size from the IDE theme
  • deletes the scaleByFontFactor method
  • removes all usages of scaleByFontFactor

ide_zoom

Filed #9305 for the goldens change - I think they are a side effect of how Flutter handles asset loading during golden testing, and not an indication that anything has changed here.

@elliette elliette marked this pull request as ready for review July 11, 2025 21:12
@elliette elliette requested review from a team, bkonyi and kenzieschmoll as code owners July 11, 2025 21:12
@elliette elliette merged commit 600d835 into flutter:master Jul 11, 2025
41 checks passed
hrajwade96 pushed a commit to hrajwade96/devtools that referenced this pull request Sep 2, 2025
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.

Sidebar sizes - icons and font - are way too big

2 participants