remove leftover code from testing

This commit is contained in:
Mark 2023-09-20 16:15:51 +02:00
parent adaea9cd64
commit c6b75180bb

View File

@ -651,8 +651,7 @@ impl FilterPanel {
children: vec![GuiElem::new(ScrollBox::new(
GuiElemCfg::default(),
crate::gui_base::ScrollBoxSizeUnit::Pixels,
vec![
(
vec![(
GuiElem::new(Button::new(
GuiElemCfg::default(),
move |button| {
@ -687,37 +686,7 @@ impl FilterPanel {
))],
)),
1.0,
),
(
GuiElem::new(Button::new(
GuiElemCfg::default(),
|button| {
let text = button
.children()
.next()
.unwrap()
.try_as_mut::<Label>()
.unwrap()
.content
.text();
*text = if text.len() > 20 {
"Click for RegEx help".to_owned()
} else {
"Click to close RegEx help\ntest\nyay".to_owned()
};
vec![]
},
vec![GuiElem::new(Label::new(
GuiElemCfg::default(),
"Click for RegEx help".to_owned(),
Color::GRAY,
None,
Vec2::new(0.5, 0.0),
))],
)),
1.0,
),
],
)],
))],
line_height: 0.0,
}