flo/menu/controls.rs
1use super::super::style::*;
2
3use ui::*;
4
5///
6/// A divider for the menu controls
7///
8pub fn divider() -> Control {
9 Control::container()
10 .with(vec![
11 Control::empty()
12 .with(Bounds::next_horiz(5.0)),
13 Control::empty()
14 .with(Bounds::next_horiz(2.0))
15 .with(Appearance::Background(MENU_BACKGROUND_ALT)),
16 Control::empty()
17 .with(Bounds::next_horiz(5.0)),
18 ])
19 .with(Bounds::next_horiz(12.0))
20}