mirror of
https://github.com/danbulant/cushy
synced 2026-07-03 02:00:36 +00:00
Remving debugs
This commit is contained in:
parent
9bd78c648b
commit
0c36abf28e
1 changed files with 4 additions and 4 deletions
|
|
@ -74,10 +74,10 @@ impl Widget for Delimiter {
|
||||||
fn redraw(&mut self, context: &mut GraphicsContext<'_, '_, '_, '_>) {
|
fn redraw(&mut self, context: &mut GraphicsContext<'_, '_, '_, '_>) {
|
||||||
let line_width = self.get_size(context).into_upx(context.gfx.scale());
|
let line_width = self.get_size(context).into_upx(context.gfx.scale());
|
||||||
let half_line = line_width / 2;
|
let half_line = line_width / 2;
|
||||||
let end = dbg!(match self.orientation {
|
let end = match self.orientation {
|
||||||
Orientation::Horizontal => Point::new(context.gfx.size().width - half_line, half_line),
|
Orientation::Horizontal => Point::new(context.gfx.size().width - half_line, half_line),
|
||||||
Orientation::Vertical => Point::new(half_line, context.gfx.size().height - half_line),
|
Orientation::Vertical => Point::new(half_line, context.gfx.size().height - half_line),
|
||||||
});
|
};
|
||||||
let color = context.get(&DelimiterColor);
|
let color = context.get(&DelimiterColor);
|
||||||
context.gfx.draw_shape(
|
context.gfx.draw_shape(
|
||||||
&PathBuilder::new(Point::squared(half_line))
|
&PathBuilder::new(Point::squared(half_line))
|
||||||
|
|
@ -96,9 +96,9 @@ impl Widget for Delimiter {
|
||||||
available_space: Size<ConstraintLimit>,
|
available_space: Size<ConstraintLimit>,
|
||||||
context: &mut LayoutContext<'_, '_, '_, '_>,
|
context: &mut LayoutContext<'_, '_, '_, '_>,
|
||||||
) -> Size<UPx> {
|
) -> Size<UPx> {
|
||||||
let size = dbg!(self.get_size(context).into_upx(context.gfx.scale()));
|
let size = self.get_size(context).into_upx(context.gfx.scale());
|
||||||
match self.orientation {
|
match self.orientation {
|
||||||
Orientation::Horizontal => Size::new(dbg!(available_space.width).max(), size),
|
Orientation::Horizontal => Size::new(available_space.width.max(), size),
|
||||||
Orientation::Vertical => Size::new(size, available_space.height.max()),
|
Orientation::Vertical => Size::new(size, available_space.height.max()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue