Add option for setting dim font weight

Allows users to set this to a value lower than default font weight.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
Mohammad AlSaleh 2024-01-12 01:58:57 +03:00 • committed by Jeremy Soller
parent f34116f3f7
commit e56e582f90
4 changed files with 45 additions and 0 deletions

View file

@ -35,6 +35,7 @@ pub struct Config {
pub font_name: String,
pub font_size: u16,
pub font_weight: u16,
pub dim_font_weight: u16,
pub bold_font_weight: u16,
pub font_stretch: u16,
pub font_size_zoom_step_mul_100: u16,
@ -51,6 +52,7 @@ impl Default for Config {
font_name: "Fira Mono".to_string(),
font_size: 14,
font_weight: Weight::NORMAL.0,
dim_font_weight: Weight::NORMAL.0,
bold_font_weight: Weight::BOLD.0,
font_stretch: Stretch::Normal.to_number(),
font_size_zoom_step_mul_100: 100,