Uncomment git gutter painting
This commit is contained in:
parent
1abc876c15
commit
f0bc4a04bd
2 changed files with 81 additions and 68 deletions
|
@ -655,6 +655,20 @@ pub struct Corners<T: Clone + Default + Debug> {
|
|||
pub bottom_left: T,
|
||||
}
|
||||
|
||||
impl<T> Corners<T>
|
||||
where
|
||||
T: Clone + Default + Debug,
|
||||
{
|
||||
pub fn all(value: T) -> Self {
|
||||
Self {
|
||||
top_left: value.clone(),
|
||||
top_right: value.clone(),
|
||||
bottom_right: value.clone(),
|
||||
bottom_left: value,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Corners<AbsoluteLength> {
|
||||
pub fn to_pixels(&self, size: Size<Pixels>, rem_size: Pixels) -> Corners<Pixels> {
|
||||
let max = size.width.max(size.height) / 2.;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue