zed/crates/theme/src
Junkui Zhang 9b148f3dcc
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
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
..
styles Add ability to separately set background color for highlighted brackets (#17566) 2024-09-26 12:48:23 -04:00
default_colors.rs Add ability to separately set background color for highlighted brackets (#17566) 2024-09-26 12:48:23 -04:00
default_theme.rs
font_family_cache.rs
one_themes.rs Add ability to separately set background color for highlighted brackets (#17566) 2024-09-26 12:48:23 -04:00
prelude.rs
registry.rs
scale.rs
schema.rs Add ability to separately set background color for highlighted brackets (#17566) 2024-09-26 12:48:23 -04:00
settings.rs Limit the value can be set for font weight (#18594) 2024-10-01 13:32:31 -04:00
styles.rs
theme.rs