mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Actually added all files this time
This commit is contained in:
parent
0efbe6eb34
commit
1a0f43f0c5
3 changed files with 13 additions and 3 deletions
|
@ -2737,7 +2737,7 @@ impl Editor {
|
|||
Some(
|
||||
MouseEventHandler::new::<Tag, _, _>(0, cx, |_, _| {
|
||||
Svg::new("icons/bolt_8.svg")
|
||||
.with_color(style.code_actions_indicator)
|
||||
.with_color(style.code_actions.indicator)
|
||||
.boxed()
|
||||
})
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
|
|
|
@ -1453,7 +1453,10 @@ impl Element for EditorElement {
|
|||
|
||||
if let Some((_, indicator)) = code_actions_indicator.as_mut() {
|
||||
indicator.layout(
|
||||
SizeConstraint::strict_along(Axis::Vertical, line_height * 0.618),
|
||||
SizeConstraint::strict_along(
|
||||
Axis::Vertical,
|
||||
line_height * style.code_actions.vertical_scale,
|
||||
),
|
||||
cx,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -480,7 +480,7 @@ pub struct Editor {
|
|||
pub hint_diagnostic: DiagnosticStyle,
|
||||
pub invalid_hint_diagnostic: DiagnosticStyle,
|
||||
pub autocomplete: AutocompleteStyle,
|
||||
pub code_actions_indicator: Color,
|
||||
pub code_actions: CodeActions,
|
||||
pub unnecessary_code_fade: f32,
|
||||
pub hover_popover: HoverPopover,
|
||||
pub link_definition: HighlightStyle,
|
||||
|
@ -541,6 +541,13 @@ pub struct FieldEditor {
|
|||
pub selection: SelectionStyle,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Default)]
|
||||
pub struct CodeActions {
|
||||
#[serde(default)]
|
||||
pub indicator: Color,
|
||||
pub vertical_scale: f32,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone, Copy)]
|
||||
pub struct Interactive<T> {
|
||||
pub default: T,
|
||||
|
|
Loading…
Reference in a new issue