1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

fix: Proper block cursor shape (#4752)

* fix: Proper block cursor shape

* change stroke.width multiplier
This commit is contained in:
hyperpuncher 2024-01-21 22:01:51 +03:00 committed by GitHub
parent 1d4a407df9
commit e05179e4fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,7 +262,7 @@ impl PolyStyle {
let mut stroke = Stroke::default();
stroke.width = width;
if self == PolyStyle::OutlineHeavy {
stroke.width *= 3.0; // NOTE: Using 2.0, the difference is almost invisible
stroke.width *= 3.1; // NOTE: Changing this makes block cursor unproportinal at different font sizes
} else if self == PolyStyle::OutlineThin {
stroke.width = 1.2;
}