Add a proc macro for deriving override structs with optional fields

This commit is contained in:
Nathan Sobo 2023-08-17 09:39:23 -06:00
parent b95b2af3e0
commit ab9356e9d8
9 changed files with 209 additions and 96 deletions

View file

@ -1,11 +1,11 @@
#![allow(dead_code, unused_variables)]
use color::black;
use components::button;
use div::div;
use element::Element;
use frame::frame;
use gpui::{
geometry::{rect::RectF, vector::vec2f},
platform::{MouseButton, WindowOptions},
platform::WindowOptions,
};
use log::LevelFilter;
use simplelog::SimpleLogger;
@ -16,8 +16,8 @@ use view::view;
mod adapter;
mod color;
mod components;
mod div;
mod element;
mod frame;
mod paint_context;
mod style;
mod text;
@ -44,7 +44,7 @@ fn main() {
}
fn playground<V: 'static>(theme: &ThemeColors) -> impl Element<V> {
frame()
div()
.text_color(black())
.h_full()
.w_half()