+
Skip to content

Remove scaleByFontFactor method and usages #9304

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

Merged
merged 11 commits into from
Jul 11, 2025

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 kenzieschmoll, bkonyi and a team as code owners July 11, 2025 21:12
@elliette elliette merged commit 600d835 into flutter:master Jul 11, 2025
41 checks passed
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载