Closed andreamancuso closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
This pull request introduces significant changes to the dear-imgui
package, primarily focusing on the styling and state management of UI elements. Key modifications include the introduction of new structs for style management, the renaming of member variables for clarity, and the addition of new methods for handling styles based on different states. The changes affect various components, including the Element
, Node
, and Widget
classes, as well as several widget-related files, enhancing the overall styling flexibility and interaction state tracking.
File Path | Change Summary |
---|---|
packages/dear-imgui/cpp/include/element/element.h |
- Replaced BaseDrawStyle with ElementStyleParts and added ElementStyle struct.- Introduced new methods: HasStyle , GetElementStyleParts , ExtractStyle .- Renamed SetStyle to ApplyStyle .- Added member variables for interaction states. |
packages/dear-imgui/cpp/src/element/element.cpp |
- Added m_elementStyle and new methods for style extraction and application.- Removed SetStyle , updated DrawBaseEffects and Patch methods to utilize new style handling logic. |
packages/dear-imgui/cpp/src/widget/widget.cpp |
- Updated Widget constructor to include trackMouseClickEvents parameter. |
packages/dear-imgui/ts/src/lib/components/ReactImgui/Node.tsx |
- Added trackMouseClickEvents property to Node component. |
packages/dear-imgui/ts/src/lib/components/ReactImgui/types.ts |
- Introduced trackMouseClickEvents to NodeProps type. |
packages/dear-imgui/ts/src/lib/components/TradingGuiDemo/Tabs/Tabs.tsx |
- Removed font property from tab styles and enhanced hoveredTab and activeTab styles with new properties. |
packages/dear-imgui/ts/src/lib/react-native/nativeFabricUiManager.ts |
- Updated createNode method to change ID linking logic from type-based to ID-based verification. |
element.h
file, including the replacement of BaseDrawStyle
with ElementStyleParts
, which aligns closely with the changes made in the main PR regarding style management and state handling in the Element
class.🐇 In the land of code where styles bloom,
New structs and methods make room!
With states to track and styles to apply,
Our UI now dances, oh my, oh my!
From buttons to tabs, all dressed in flair,
A rabbit's delight, with style everywhere! 🐰✨
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?
Failed conditions
E Reliability Rating on New Code (required ≥ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Refactor