mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Change icon width to scale with font size
This commit is contained in:
parent
05f6747132
commit
2ba38b2fca
@ -2746,7 +2746,7 @@ impl Editor {
|
||||
.color,
|
||||
)
|
||||
.constrained()
|
||||
.with_width(style.icon_width)
|
||||
.with_width(gutter_margin * style.icon_margin_scale)
|
||||
.aligned()
|
||||
.constrained()
|
||||
.with_height(line_height)
|
||||
|
@ -666,7 +666,7 @@ pub struct Folds {
|
||||
pub indicator: Interactive<InteractiveColor>,
|
||||
pub ellipses: FoldEllipses,
|
||||
pub fold_background: Color,
|
||||
pub icon_width: f32,
|
||||
pub icon_margin_scale: f32,
|
||||
pub folded_icon: String,
|
||||
pub foldable_icon: String,
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ export default function editor(colorScheme: ColorScheme) {
|
||||
verticalScale: 0.55,
|
||||
},
|
||||
folds: {
|
||||
iconWidth: 8,
|
||||
iconMarginScale: 2.5,
|
||||
foldedIcon: "icons/chevron_right_8.svg",
|
||||
foldableIcon: "icons/chevron_down_8.svg",
|
||||
indicator: {
|
||||
|
Loading…
Reference in New Issue
Block a user