zed/crates/theme
Junkui Zhang 9b148f3dcc
Limit the value can be set for font weight (#18594)
Closes #18531



This PR limits the range of values that can be set for `FontWeight`.
Since any value less than 1.0 or greater than 999.9 causes Zed to crash
on Windows, I’ve restricted `FontWeight` to this range.

I could apply this constraint only on Windows, but considering the
documentation at https://zed.dev/docs/configuring-zed#buffer-font-weight
indicates that `FontWeight` should be between 100 and 900, I thought it
might be a good idea to apply this restriction in the settings.


Release Notes:

- Changed `ui_font_weight` and `buffer_font_weight` settings to require
values to be between `100` and `950` (inclusive).

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-01 13:32:31 -04:00
..
src Limit the value can be set for font weight (#18594) 2024-10-01 13:32:31 -04: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