Merge pull request #2283 from zed-industries/fix-code-fold-indicator-scaling
Change fold icon width to scale with font size
This commit is contained in:
commit
2a5ac4f203
3 changed files with 3 additions and 3 deletions
|
@ -2746,7 +2746,7 @@ impl Editor {
|
||||||
.color,
|
.color,
|
||||||
)
|
)
|
||||||
.constrained()
|
.constrained()
|
||||||
.with_width(style.icon_width)
|
.with_width(gutter_margin * style.icon_margin_scale)
|
||||||
.aligned()
|
.aligned()
|
||||||
.constrained()
|
.constrained()
|
||||||
.with_height(line_height)
|
.with_height(line_height)
|
||||||
|
|
|
@ -664,7 +664,7 @@ pub struct Folds {
|
||||||
pub indicator: Interactive<InteractiveColor>,
|
pub indicator: Interactive<InteractiveColor>,
|
||||||
pub ellipses: FoldEllipses,
|
pub ellipses: FoldEllipses,
|
||||||
pub fold_background: Color,
|
pub fold_background: Color,
|
||||||
pub icon_width: f32,
|
pub icon_margin_scale: f32,
|
||||||
pub folded_icon: String,
|
pub folded_icon: String,
|
||||||
pub foldable_icon: String,
|
pub foldable_icon: String,
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ export default function editor(colorScheme: ColorScheme) {
|
||||||
verticalScale: 0.55,
|
verticalScale: 0.55,
|
||||||
},
|
},
|
||||||
folds: {
|
folds: {
|
||||||
iconWidth: 8,
|
iconMarginScale: 2.5,
|
||||||
foldedIcon: "icons/chevron_right_8.svg",
|
foldedIcon: "icons/chevron_right_8.svg",
|
||||||
foldableIcon: "icons/chevron_down_8.svg",
|
foldableIcon: "icons/chevron_down_8.svg",
|
||||||
indicator: {
|
indicator: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue