use crate::{
makepad_widgets::*,
};
live_design!{
use link::theme::*;
use link::shaders::*;
use link::widgets::*;
use crate::layout_templates::*;
pub DemoPageFlip = <UIZooTabLayout_B> {
desc = {
<Markdown> { body: dep("crate://self/resources/pageflip.md") }
}
demos = {
<View> {
height: Fit, width: Fill,
flow: Right,
spacing: (THEME_SPACE_2)
pageflipbutton_a = <Button> { text: "Page A" }
pageflipbutton_b = <Button> { text: "Page B" }
pageflipbutton_c = <Button> { text: "Page C" }
}
page_flip = <PageFlip> {
width: Fill, height: Fill,
flow: Down
active_page: page_a
page_a = <View> {
align: { x: 0.5, y: 0.5 }
show_bg: true,
draw_bg: { color: #f00 }
width: Fill, height: Fill,
<H3> { width: Fit, text: "Page A"}
}
page_b = <View> {
align: { x: 0.5, y: 0.5 }
show_bg: true,
draw_bg: { color: #080 }
width: Fill, height: Fill,
<H3> { width: Fit, text: "Page B"}
}
page_c = <View> {
align: { x: 0.5, y: 0.5 }
show_bg: true,
draw_bg: { color: #008 }
width: Fill, height: Fill,
<H3> { width: Fit, text: "Page C"}
}
}
}
}
}