ThemeGen
ThemeGen is a Godot Engine tool that simplifies theme creation using GDScript. It enables efficient style reuse, recombination, and color sharing across UI components, enhancing theme management and customization.
https://github.com/Inspiaaa/ThemeGenPreview Images




Streamlining Godot Themes with ThemeGen
ThemeGen is a powerful tool designed to revolutionize theme creation within the Godot Engine. By leveraging GDScript, ThemeGen allows developers to programmatically define and manage themes, offering a significant advantage over traditional UI theme editors. This approach fosters greater flexibility, reusability, and maintainability when designing user interfaces.
Key Features and Benefits
- GDScript-Based Theme Definition: Create and manage themes using GDScript code, enabling reuse of styles and easy sharing of colors.
- Semantic Colors and Theme Variations: Utilize semantic colors and effortlessly generate multiple theme variations, such as light and dark themes.
- Live Preview: Instantly see theme changes in the editor, thanks to the real-time regeneration feature.
-
StyleBoxes Management: Simplify StyleBox creation, combination, and inheritance with dedicated methods like
stylebox_flat
,stylebox_line
, andinherit
. - Shortcuts for Repetitive Properties: Streamline your workflow with shortcuts for setting border widths, corner radii, expand margins, and content margins.
- Theme Variants: Easily create theme variants with individual setup functions.
-
Custom Theme Properties: Ability to set custom theme properties using
current_theme
. - Logging Verbosity Control: Configure the verbosity to control the amount of information displayed in the output log.
Installation and Usage
ThemeGen can be installed directly from the Godot Asset Library or manually by downloading the latest version from the releases page and placing it in your project's 'addons' folder. The tool supports live preview with Save Sync plugin.
By extending the ProgrammaticTheme
class and defining styles within the define_theme
function, developers can efficiently create and manage complex themes with ease.