mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Remove Overdraw
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
d5a9bab4a0
commit
a9c428ad05
1 changed files with 0 additions and 15 deletions
|
@ -11,7 +11,6 @@ use crate::{
|
|||
pub struct Container {
|
||||
margin: Margin,
|
||||
padding: Padding,
|
||||
overdraw: Overdraw,
|
||||
background_color: Option<ColorU>,
|
||||
border: Border,
|
||||
corner_radius: f32,
|
||||
|
@ -24,7 +23,6 @@ impl Container {
|
|||
Self {
|
||||
margin: Margin::default(),
|
||||
padding: Padding::default(),
|
||||
overdraw: Overdraw::default(),
|
||||
background_color: None,
|
||||
border: Border::default(),
|
||||
corner_radius: 0.0,
|
||||
|
@ -68,11 +66,6 @@ impl Container {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn with_overdraw_bottom(mut self, overdraw: f32) -> Self {
|
||||
self.overdraw.bottom = overdraw;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_corner_radius(mut self, radius: f32) -> Self {
|
||||
self.corner_radius = radius;
|
||||
self
|
||||
|
@ -207,14 +200,6 @@ pub struct Padding {
|
|||
right: f32,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Overdraw {
|
||||
top: f32,
|
||||
left: f32,
|
||||
bottom: f32,
|
||||
right: f32,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Shadow {
|
||||
offset: Vector2F,
|
||||
|
|
Loading…
Reference in a new issue