Use user-defined font weight in terminal (#13926)

Related #13653

Release Notes:

- Fixed honoring of the `terminal.font_weight` user setting
This commit is contained in:
Aleksei Gusev 2024-07-08 14:43:23 +03:00 committed by GitHub
parent cd7268f21f
commit 11c7374f76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,7 +370,7 @@ impl TerminalElement {
let weight = if flags.intersects(Flags::BOLD) {
FontWeight::BOLD
} else {
FontWeight::NORMAL
text_style.font_weight
};
let style = if flags.intersects(Flags::ITALIC) {
@ -637,7 +637,7 @@ impl Element for TerminalElement {
let link_style = HighlightStyle {
color: Some(theme.colors().link_text_hover),
font_weight: None,
font_weight: Some(font_weight),
font_style: None,
background_color: None,
underline: Some(UnderlineStyle {