Closed andreamancuso closed 3 months ago
The recent changes enhance the dear-imgui
library with new utility functions for color conversion and drawing flags, improving its robustness and flexibility. Simultaneously, the ReactImgui
component library receives substantial updates to its styling architecture, promoting modularity and enabling richer customization of component styles.
File(s) | Change Summary |
---|---|
packages/dear-imgui/cpp/include/shared.h |
Added jsonHEXATupleToIV4 for converting HEX color JSON to ImVec4 and cornersToDrawFlags for managing drawable corners. |
packages/dear-imgui/cpp/src/shared.cpp |
Implemented jsonHEXATupleToIV4 to validate and convert HEX colors and developed cornersToDrawFlags for enhanced drawing flexibility. |
packages/dear-imgui/ts/src/lib/components/ReactImgui/types.ts |
Introduced BaseDrawStyle , replaced StyleProps with NodeStyle and WidgetStyle , and updated WidgetPropsMap for improved styling. |
packages/dear-imgui/ts/src/lib/stylesheet/*.ts |
Updated type definitions for greater styling flexibility and renamed YogaNode to NodeProps , integrating new styling conventions. |
sequenceDiagram
participant User
participant ColorConverter
participant Drawer
User->>ColorConverter: Provide HEX color JSON
ColorConverter-->>User: Return std::optional<ImVec4>
User->>Drawer: Specify drawing flags with side string
Drawer-->>User: Render drawable with updated flags
🐰 In the meadow of code, new functions sprout,
Converting colors, there's no doubt!
With flags that dance and styles that shine,
Our UI's a canvas, so bright and divine.
A rabbit's delight in this coding spree,
Hopping through changes, as happy as can be! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
6 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Summary by CodeRabbit
New Features
BaseDrawStyle
for enhanced UI customizations.Refactor
StyleProps
toNodeStyle
andWidgetStyle
for consistency.Documentation
Bug Fixes