mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 14:13:53 +01:00
remove leftover code from testing
This commit is contained in:
parent
adaea9cd64
commit
c6b75180bb
@ -651,8 +651,7 @@ impl FilterPanel {
|
|||||||
children: vec![GuiElem::new(ScrollBox::new(
|
children: vec![GuiElem::new(ScrollBox::new(
|
||||||
GuiElemCfg::default(),
|
GuiElemCfg::default(),
|
||||||
crate::gui_base::ScrollBoxSizeUnit::Pixels,
|
crate::gui_base::ScrollBoxSizeUnit::Pixels,
|
||||||
vec![
|
vec![(
|
||||||
(
|
|
||||||
GuiElem::new(Button::new(
|
GuiElem::new(Button::new(
|
||||||
GuiElemCfg::default(),
|
GuiElemCfg::default(),
|
||||||
move |button| {
|
move |button| {
|
||||||
@ -687,37 +686,7 @@ impl FilterPanel {
|
|||||||
))],
|
))],
|
||||||
)),
|
)),
|
||||||
1.0,
|
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,
|
line_height: 0.0,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user