From b0e5415e98219fb2d172ae64e8105457b4d122f1 Mon Sep 17 00:00:00 2001 From: John Mitchell <6656977+StarArawn@users.noreply.github.com> Date: Sat, 26 Nov 2022 13:39:43 -0500 Subject: [PATCH] Updated readme to include ComputedStyles. --- book/src/chapter_2.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/src/chapter_2.md b/book/src/chapter_2.md index 98c0f49..3abec0b 100644 --- a/book/src/chapter_2.md +++ b/book/src/chapter_2.md @@ -8,7 +8,8 @@ Kayak UI builds out UI using a tree structure. A widget can be defined as any ob ### Widgets are entities Kayak UI uses Bevy ECS. Each widget is considered an entity with a collection of data. Typically an widget and it's entity can contain whatever data desired, but some common components are: - Mount - A component tag used to know that a widget was spawned and added to the tree. -- KStyle - Used to describe how a widget looks. Kayak uses this component to dictate UI rendering. +- KStyle - Used to pass in styles from outside of a widget. +- ComputedStyles - The actual styles of a widget. Styles define the look and layout of the widget. Kayak uses this component to dictate UI rendering. - KChildren - A collection of entities that are added to the tree in a deferred way. These entities are coming from higher up the hierarchy. - OnEvent - A mini/micro bevy system that lets you respond to UI input events. - OnChange - A mini/micro system which allows changes to state based on value changes to state. -- GitLab