Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This proposal aims to enhance developer experience when working with Godot’s UI theme system by introducing structured access to theme keys in code.
The Problem
Godot’s theme system relies heavily on string-based identifiers to reference styleboxes, colors, and constants (e.g.
"focus"
,"selection_color"
, etc.). This works fine in GDScript, but in C#:For developers building modular, metadata-driven, or designer-friendly UI systems, the current workflow limits productivity and maintainability.
The Proposed Solution
Introduce a built-in enum, static class, or generated key registry that exposes all known Theme property identifiers used by Control nodes. For example:
This would:
Who It Benefits
Why It Matters
Godot’s design philosophy already celebrates clarity and flexibility. This addition would elevate its theme system to match that spirit, especially for those crafting extensible UI frameworks or editor integrations. Even an initial static class for standard controls would go a long way toward reducing friction and enabling richer customization pipelines.
Beta Was this translation helpful? Give feedback.
All reactions