diff --git a/README.md b/README.md index ce88b97..1e15390 100644 --- a/README.md +++ b/README.md @@ -31,4 +31,8 @@ cargo makepad check all cargo makepad wasm install-toolchain cargo makepad apple ios install-toolchain -cargo makepad android --abi=all install-toolchain \ No newline at end of file +cargo makepad android --abi=all install-toolchain + +git add . +git commit -m "welcome screen centered" +git push -u origin main \ No newline at end of file diff --git a/src/app.rs b/src/app.rs index e1b61a9..a01e4b7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -9,6 +9,7 @@ live_design!{ import crate::welcome::welcome_screen::WelcomeScreen import crate::counter::counter_screen::CounterScreen + import crate::counter::counterscrn::CounterScrn import crate::shared::clickable_view::ClickableView import crate::shared::stack_navigation::*; @@ -41,15 +42,17 @@ live_design!{ window: { position: vec2(0, 0), // inner_size: vec2(360, 800) + dpi_override: 2 }, - show_bg: true - width: Fill, - height: Fill - draw_bg: { - fn pixel(self) -> vec4 { - return mix(#7, #3, self.pos.y); - } - } + pass: {clear_color: #2A} + // show_bg: true + // width: Fill, + // height: Fill + // draw_bg: { + // fn pixel(self) -> vec4 { + // return mix(#7, #3, self.pos.y); + // } + // } body = { navigation = { root_view = { @@ -62,6 +65,7 @@ live_design!{ padding: 0.0 welcome_frame = { visible: true } + // welcome_frame = { visible: true } } } my_counter_stack_view = { @@ -74,7 +78,8 @@ live_design!{ } } } - {} + // {} + {} } } } @@ -99,6 +104,7 @@ impl LiveHook for App { crate::welcome::welcome_screen::live_design(cx); // counter crate::counter::counter_screen::live_design(cx); + crate::counter::counterscrn::live_design(cx); // shared crate::shared::styles::live_design(cx); @@ -106,6 +112,7 @@ impl LiveHook for App { crate::shared::header::live_design(cx); crate::shared::search_bar::live_design(cx); crate::shared::custom_button::live_design(cx); + crate::shared::cbutton::live_design(cx); crate::shared::popup_menu::live_design(cx); crate::shared::dropdown_menu::live_design(cx); crate::shared::stack_navigation::live_design(cx); diff --git a/src/counter/counter_screen.rs b/src/counter/counter_screen.rs index cb49ae7..d63c212 100644 --- a/src/counter/counter_screen.rs +++ b/src/counter/counter_screen.rs @@ -14,6 +14,9 @@ live_design! { import crate::shared::clickable_view::ClickableView // import crate::shared::header::HeaderDropDownMenu; + import crate::shared::search_bar::SearchBar; + import crate::shared::custom_button::CustomButton; + import crate::shared::cbutton::CButton; Counter = {{Counter}} { @@ -40,14 +43,34 @@ live_design! { source: (LOGO_MAKEPAD), width: 300., height: 80. } - button1 =