diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7f60309f6ab39ad1839598fc612d465e2f5cf19d..66169be652ee1402c2a6359095e709a7c89f1911 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -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) diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs index e316a130d6a41d988891f120a0315b14b25818aa..87de31f635d7246dc8bee0c2c510f846114bdfaa 100644 --- a/crates/theme/src/theme.rs +++ b/crates/theme/src/theme.rs @@ -664,7 +664,7 @@ pub struct Folds { pub indicator: Interactive, pub ellipses: FoldEllipses, pub fold_background: Color, - pub icon_width: f32, + pub icon_margin_scale: f32, pub folded_icon: String, pub foldable_icon: String, } diff --git a/styles/src/styleTree/editor.ts b/styles/src/styleTree/editor.ts index 64a19d714fa6f5b7edeaa1bac255006f242e8b3f..4a7aae4c1bf0936da11034c34629ad01256ec727 100644 --- a/styles/src/styleTree/editor.ts +++ b/styles/src/styleTree/editor.ts @@ -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: {