For the past month and a half, I’ve been working on Silverware, a modern and performant C++ UI framework developed as part of my work on RedleafEngine.
I originally started this project because, as RedleafEngine’s editor grew, my existing UI approach began showing its limitations. Reusing functionality across different parts of the editor was becoming increasingly difficult, panels were taking on too much responsibility, and maintaining a consistent styling system was becoming a challenge.
So I decided to build something of my own.
Silverware takes a hybrid approach, combining the flexibility of Immediate Mode APIs with the underlying structure of a Retained Mode UI system. Its architecture is designed around reusable widgets, centralized state management, and a flexible styling system.
I’ve also been studying existing UI architectures, particularly Unreal Engine’s Slate, throughout the design process.
Where things stand now
The framework’s core infrastructure and styling foundation are in place, including:
- Styling system: A dedicated .swstyle stylesheet format, theme inheritance, design tokens, and a complementary C++ styling API.
- Rendering: Support for advanced visual treatments, customizable borders, corner geometry, effects, and compositing.
- Event system: Hierarchy-aware event propagation with capture, target, and bubble phases.
- Widget infrastructure: Focus management, keyboard traversal, pointer interaction routing, disabled-state propagation, and centralized widget management.
I’ve now completed Phase 2 of Silverware’s development, expanding its reusable widget foundation with more controls needed to build complex editor interfaces.
The attached video is a small showcase of where the framework currently stands.
Silverware is being developed as an independent, reusable framework, with the intention of releasing it as an open-source project.
There’s still plenty to do, but I’m happy with how the architecture is coming together.
I’d love to hear thoughts from people who’ve worked on UI frameworks or complex application interfaces. Especially regarding architecture and design decisions.