Style scrollbar when using diff markers
This commit is contained in:
parent
3271cf1030
commit
6add17338c
1 changed files with 6 additions and 6 deletions
|
@ -1338,9 +1338,9 @@ impl EditorElement {
|
||||||
let bounds = Bounds::from_corners(point(left, start_y), point(right, end_y));
|
let bounds = Bounds::from_corners(point(left, start_y), point(right, end_y));
|
||||||
|
|
||||||
let color = match hunk.status() {
|
let color = match hunk.status() {
|
||||||
DiffHunkStatus::Added => gpui::green(), // todo!("use the right color")
|
DiffHunkStatus::Added => cx.theme().status().created,
|
||||||
DiffHunkStatus::Modified => gpui::yellow(), // todo!("use the right color")
|
DiffHunkStatus::Modified => cx.theme().status().modified,
|
||||||
DiffHunkStatus::Removed => gpui::red(), // todo!("use the right color")
|
DiffHunkStatus::Removed => cx.theme().status().deleted,
|
||||||
};
|
};
|
||||||
cx.paint_quad(
|
cx.paint_quad(
|
||||||
bounds,
|
bounds,
|
||||||
|
@ -1352,7 +1352,7 @@ impl EditorElement {
|
||||||
bottom: Pixels::ZERO,
|
bottom: Pixels::ZERO,
|
||||||
left: px(1.),
|
left: px(1.),
|
||||||
},
|
},
|
||||||
gpui::green(), // todo!("style.thumb.border.color")
|
cx.theme().colors().scrollbar_thumb_border,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1360,14 +1360,14 @@ impl EditorElement {
|
||||||
cx.paint_quad(
|
cx.paint_quad(
|
||||||
thumb_bounds,
|
thumb_bounds,
|
||||||
Corners::default(),
|
Corners::default(),
|
||||||
gpui::black(), // todo!("style.thumb.background_color")
|
cx.theme().colors().scrollbar_thumb_background,
|
||||||
Edges {
|
Edges {
|
||||||
top: Pixels::ZERO,
|
top: Pixels::ZERO,
|
||||||
right: px(1.),
|
right: px(1.),
|
||||||
bottom: Pixels::ZERO,
|
bottom: Pixels::ZERO,
|
||||||
left: px(1.),
|
left: px(1.),
|
||||||
},
|
},
|
||||||
gpui::green(), // todo!("style.thumb.border.color")
|
cx.theme().colors().scrollbar_thumb_border,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue