Skip to content
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

ui: Track changes to UI font size made via actions with settings #23265

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

osiewicz
Copy link
Contributor

@osiewicz osiewicz commented Jan 16, 2025

Fixes #5380

Closes #5380

Release Notes:

  • Font size changes made with actions are now persisted in user settings

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 16, 2025
@osiewicz osiewicz enabled auto-merge (squash) January 16, 2025 23:21
@osiewicz osiewicz merged commit 795376c into main Jan 16, 2025
12 checks passed
@osiewicz osiewicz deleted the ui-font-size-track-decrease-increase-in-settings branch January 16, 2025 23:28
@nathansobo
Copy link
Contributor

Nice work on this one!

@didier
Copy link

didier commented Jan 29, 2025

Can we revert this / provide a way to disable it? Via #23505

SomeoneToIgnore added a commit that referenced this pull request Feb 14, 2025
Closes #23505

Now `zed::IncreaseBufferFontSize` (and all the same UI- and
Buffer-related settings) action is parameterized with `{ "persist": true
}` (default).
Using `"persist": false` brings back resizing behavior prior to
#23265


Release Notes:

- Added a way to toggle font size without settings adjustments
@maxbrunsfeld
Copy link
Collaborator

maxbrunsfeld commented Feb 14, 2025

I do not think we should be doing this by default.

@maxbrunsfeld
Copy link
Collaborator

maxbrunsfeld commented Feb 14, 2025

I think ideally, cmd + should be window-specific, and we would serialize the per-window font size adjustment along with other aspects of the window configuration. That might also address #5380.

JosephTLyons pushed a commit that referenced this pull request Feb 20, 2025
Closes #23505

Now `zed::IncreaseBufferFontSize` (and all the same UI- and
Buffer-related settings) action is parameterized with `{ "persist": true
}` (default).
Using `"persist": false` brings back resizing behavior prior to
#23265


Release Notes:

- Added a way to toggle font size without settings adjustments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Persist font size changes
4 participants