use makepad_widgets::widget::WidgetCache; use makepad_widgets::*; live_design! { import makepad_draw::shader::std::*; import makepad_widgets::base::*; import makepad_widgets::theme_desktop_dark::*; import crate::shared::helpers::*; import crate::shared::helpers::Divider; import crate::shared::styles::*; import crate::shared::clickable_view::ClickableView import crate::shared::search_bar::SearchBar; import crate::shared::custom_button::CustomButton; Counter = {{Counter}} { width: Fill, height: Fill flow: Down, spacing: 10. draw_bg: { color: #000 } // draw_bg: { // fn pixel(self) -> vec4 { // return mix(#3, #1, self.pos.y); // } // } CounterInfo = { width: Fill, height: Fill flow: Right, spacing: 10., align: { x: 0.5, y: 0.5 }, show_bg: true draw_bg: { color: #fff } { width: Fit height: Fill show_bg: false align: {x: 0.5, y: 0.5} container = { width: 360 height: 400 align: {x: 0.5, y: 0.5} spacing: 2.0 draw_bg: { color: #ddd, radius: (CARD_CORNER_RADIUS) } { width: Fit, height: Fill flow: Down, align: {x: 0.5, y: 0.5}, padding: {top: 5., left: 10., right: 10.}, spacing: 20. avatar = { source: (LOGO_MAKEPAD), width: 300., height: 80. } button1 = { button = { text: "Hello world" } } message_input = { show_bg: false input = { width: Fill, height: Fit, margin: 0 empty_message: "Click to count" draw_bg: { color: #fff border_width: 0.5, border_color: #b4b4b4, } } } label1 =