use makepad_widgets::*; live_design! { import makepad_widgets::base::*; import makepad_widgets::theme_desktop_dark::*; import crate::widgets::area::Area; import crate::widgets::renderer::IRenderer; import makepad_draw::shader::std::*; import crate::widgets::selector_modal::SelectorItem; HELLO = "Hello, World!"; Group = { flow: Down spacing: 10. padding: 15. height: Fit width: Fill draw_bg: { instance border_width: 1.0 instance border_color: (THEME_COLOR_U_2) } } Alert = { flow:Down, padding: 10. height: Fit width: Fit draw_bg: { fn pixel(self) -> vec4 { return mix(#7,#4,self.pos.y); } } } MainView = { width: Fill, height: Fill dock = { height: Fill, width: Fill root = Splitter { axis: Horizontal, align: FromB(300.0), a: renderer_panel, b: controller_panel, } renderer_panel = Tab { name: "", kind: Renderer } Renderer = { height: Fill, width: Fill, flow: Down, align: { x: 0.5, y: 0.5 }, quad = { id: "Primary" } } controller_panel = Tab { name: "" template: StandardTab, kind: Controller } Controller = { draw_bg: { color: (THEME_COLOR_U_1) } height: Fill, width: Fill padding: 10., flow: Down, spacing: 15., scroll_bars: {show_scroll_x: false, show_scroll_y: true}

{ text: "Controller"} { { width: Fill, height: 30, draw_slider:{ slider_type: Horizontal }, } { width: Fill, height: 30, draw_slider:{ slider_type: Horizontal }, } { width: Fill, height: 30, draw_slider:{ slider_type: Horizontal }, } open_modal =