mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
My original idea for GUI building tools was to have the "VisualBuilder" app generate C++ code which in turn programmatically instantiated UI. That never really materialized in any useful way beyond static UIs. This is a fresh, new approach: using JSON to declare the UI and parsing and constructing this UI at runtime. This will allow for way more dynamic and flexible approaches to GUI development (I think.) The basic idea is that you pass a JSON string to Widget::load_from_json and it takes care of the rest. This first version supports basic box layouts and instantiation of arbitrary widgets, as long as those widgets have been registered. This code has some pretty rough edges right now as it's evolving and we need to figure out a lot of things about how it should work. Nevertheless, it feels pretty cool. :^)
28 KiB
28 KiB