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 {
|
pub struct Container {
|
||||||
margin: Margin,
|
margin: Margin,
|
||||||
padding: Padding,
|
padding: Padding,
|
||||||
overdraw: Overdraw,
|
|
||||||
background_color: Option<ColorU>,
|
background_color: Option<ColorU>,
|
||||||
border: Border,
|
border: Border,
|
||||||
corner_radius: f32,
|
corner_radius: f32,
|
||||||
|
@ -24,7 +23,6 @@ impl Container {
|
||||||
Self {
|
Self {
|
||||||
margin: Margin::default(),
|
margin: Margin::default(),
|
||||||
padding: Padding::default(),
|
padding: Padding::default(),
|
||||||
overdraw: Overdraw::default(),
|
|
||||||
background_color: None,
|
background_color: None,
|
||||||
border: Border::default(),
|
border: Border::default(),
|
||||||
corner_radius: 0.0,
|
corner_radius: 0.0,
|
||||||
|
@ -68,11 +66,6 @@ impl Container {
|
||||||
self
|
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 {
|
pub fn with_corner_radius(mut self, radius: f32) -> Self {
|
||||||
self.corner_radius = radius;
|
self.corner_radius = radius;
|
||||||
self
|
self
|
||||||
|
@ -207,14 +200,6 @@ pub struct Padding {
|
||||||
right: f32,
|
right: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
|
||||||
pub struct Overdraw {
|
|
||||||
top: f32,
|
|
||||||
left: f32,
|
|
||||||
bottom: f32,
|
|
||||||
right: f32,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct Shadow {
|
pub struct Shadow {
|
||||||
offset: Vector2F,
|
offset: Vector2F,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue