Skip to content

Themeing#48

Merged
quiteboring merged 10 commits intoCobaltScripts:masterfrom
ForBai:themeing
Feb 11, 2026
Merged

Themeing#48
quiteboring merged 10 commits intoCobaltScripts:masterfrom
ForBai:themeing

Conversation

@ForBai
Copy link
Copy Markdown

@ForBai ForBai commented Feb 6, 2026

Sorry i couldn't bother writing a summary myself so here is AI summary:

This pull request introduces a comprehensive UI theming system to the project, enabling support for multiple themes (such as Dark, Light, and Custom), dynamic theme switching, and theme persistence across sessions. The implementation includes a Theme interface, concrete theme classes, a theme manager, color palette utilities, and integration with the configuration system for saving and loading user themes. Additionally, UI components have been updated to use the active theme's colors instead of hardcoded values.

Theming System Core:

  • Introduced a new Theme interface defining a wide range of color properties for UI elements, serving as the contract for all theme implementations.
  • Added concrete theme classes: DarkTheme, LightTheme, and a mutable CustomTheme for user-defined palettes. [1] [2] [3]
  • Implemented ThemeManager as a singleton to handle theme registration, switching, and retrieval of the current theme.
  • Added ThemePalette utility to generate and apply color schemes to CustomTheme instances, supporting easy customization and derivation of theme colors.

Persistence and Configuration:

  • Updated the configuration system to support saving and loading themes (themes.json), including serialization/deserialization of custom themes and restoring the last selected theme on startup. [1] [2]

UI Integration:

  • Refactored UI components (e.g., UIAddonEntry, UIBackButton) to use theme-based colors from ThemeManager.currentTheme instead of hardcoded color values, enabling dynamic theme changes throughout the UI. [1] [2] [3]

Animation Utility:

  • Enhanced ColorAnimation with a new method to interpolate between two color integers, supporting smooth animated transitions between theme colors. [1] [2]

@ForBai
Copy link
Copy Markdown
Author

ForBai commented Feb 6, 2026

dont merge yet i still need to implement importing and exporting

@ForBai
Copy link
Copy Markdown
Author

ForBai commented Feb 9, 2026

grafik

@ForBai
Copy link
Copy Markdown
Author

ForBai commented Feb 9, 2026

i just need to resolve conflict then i would say its ready to merge

@ForBai
Copy link
Copy Markdown
Author

ForBai commented Feb 9, 2026

done

@quiteboring quiteboring merged commit a006af4 into CobaltScripts:master Feb 11, 2026
@ForBai ForBai deleted the themeing branch February 23, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants