ZIm/crates/theme
Galen Elias 7d97855ed7
Use AppContext for UI font adjustments (#17858)
Appologies if this PR is off base, I'm still not super familiar with the
Zed codebase.

I was trying to integrate with
https://github.com/zed-industries/zed/pull/12940 
and found it awkward to hook up global bindings to adjust the UI font
size due to the fact it takes a WindowContext. Looking at the API, it
seemed odd that it took a WindowContext, yet the editor font methods
take an AppContext.

I couldn't find a compelling reason for this to be tied to a
WindowContext, so I personally think it makes sense to switch it.

This does have a behavior change, which hopefully is actually desirable:

Currently, if you have two open and visible Zed windows, and trigger a
UI font adjustment in one, the non-active windows won't update. However,
once you switch focus to the second one it will snap to the new UI font
size. This is inconsistent with adjusting the editor font size, which
applies to all open windows immediately.

Release Notes:

- N/A
2024-09-16 22:23:03 -06:00
..
src Use AppContext for UI font adjustments (#17858) 2024-09-16 22:23:03 -06:00
util Remove 2 suffix for theme 2024-01-03 12:41:01 -08:00
Cargo.toml theme: Warn when deprecated scrollbar_thumb.background style is used (#13081) 2024-06-15 22:14:39 -04:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
theme.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00