mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Disable drawing bold text bright by default
Since the assumption is usually that bold text is drawn in bright colors, this might break some applications. However some other terminals have already taken this leap, which should lessen the impact for Alacritty. Since this might still be desired and necessary for certain applications, the config option is just switched to draw with normal colors by default, however the old behavior can still be restored. Fixes #2779.
This commit is contained in:
parent
2f1a390aaa
commit
5e22512fe6
3 changed files with 4 additions and 3 deletions
|
@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Renamed `WINIT_HIDPI_FACTOR` environment variable to `WINIT_X11_SCALE_FACTOR`
|
- Renamed `WINIT_HIDPI_FACTOR` environment variable to `WINIT_X11_SCALE_FACTOR`
|
||||||
- Print an error instead of crashing, when startup working directory is invalid
|
- Print an error instead of crashing, when startup working directory is invalid
|
||||||
- Line selection will now expand across wrapped lines
|
- Line selection will now expand across wrapped lines
|
||||||
|
- The default value for `draw_bold_text_with_bright_colors` is now `false`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
#use_thin_strokes: true
|
#use_thin_strokes: true
|
||||||
|
|
||||||
# If `true`, bold text is drawn using the bright color variants.
|
# If `true`, bold text is drawn using the bright color variants.
|
||||||
#draw_bold_text_with_bright_colors: true
|
#draw_bold_text_with_bright_colors: false
|
||||||
|
|
||||||
# Colors (Tomorrow Night Bright)
|
# Colors (Tomorrow Night Bright)
|
||||||
#colors:
|
#colors:
|
||||||
|
|
|
@ -60,7 +60,7 @@ pub struct Config<T> {
|
||||||
|
|
||||||
/// Should draw bold text with brighter colors instead of bold font
|
/// Should draw bold text with brighter colors instead of bold font
|
||||||
#[serde(default, deserialize_with = "failure_default")]
|
#[serde(default, deserialize_with = "failure_default")]
|
||||||
draw_bold_text_with_bright_colors: DefaultTrueBool,
|
draw_bold_text_with_bright_colors: bool,
|
||||||
|
|
||||||
#[serde(default, deserialize_with = "failure_default")]
|
#[serde(default, deserialize_with = "failure_default")]
|
||||||
pub colors: Colors,
|
pub colors: Colors,
|
||||||
|
@ -149,7 +149,7 @@ impl<T> Config<T> {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn draw_bold_text_with_bright_colors(&self) -> bool {
|
pub fn draw_bold_text_with_bright_colors(&self) -> bool {
|
||||||
self.draw_bold_text_with_bright_colors.0
|
self.draw_bold_text_with_bright_colors
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Should show render timer
|
/// Should show render timer
|
||||||
|
|
Loading…
Reference in a new issue