simplestacknavigation/src/shared/helpers.rs

28 lines
606 B
Rust
Raw Normal View History

2023-12-12 12:44:16 +00:00
use makepad_widgets::*;
live_design! {
import makepad_widgets::base::*;
import makepad_widgets::theme_desktop_dark::*;
Divider = <View> {
width: Fill, height: Fit
flow: Down
<RoundedView> {
width: Fill,
height: 1.,
draw_bg: {color: (#ddd)}
}
}
LineH = <RoundedView> {
width: Fill,
height: 2,
margin: 0.0,
padding: 0.0, spacing: 0.0
draw_bg: {color: (COLOR_DIVIDER)}
}
FillerX = <View> { width: Fill, height: Fit }
FillerY = <View> { width: Fit, height: Fill }
}