Render a component

This commit is contained in:
Nathan Sobo 2023-08-15 19:46:07 -06:00
parent 65a5c54a2c
commit 77bc682a69
3 changed files with 38 additions and 10 deletions

View file

@ -1,4 +1,5 @@
#![allow(dead_code, unused_variables)]
use components::button;
use element::Element;
use frame::frame;
use gpui::{
@ -42,7 +43,11 @@ fn main() {
fn workspace<V: 'static>(theme: &ThemeColors) -> impl Element<V> {
// frame().w_full().h_half().fill(theme.success(0.5))
frame().h_full().w(percent(50.)).fill(theme.success(0.5))
frame()
.h_full()
.w(percent(50.))
.fill(theme.success(0.5))
.child(button())
}
// todo!()
// // column()