Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themable components #231

Merged
merged 56 commits into from
Dec 12, 2023
Merged

Themable components #231

merged 56 commits into from
Dec 12, 2023

Conversation

snixtho
Copy link
Member

@snixtho snixtho commented Dec 6, 2023

This pull request adds a full featured theme system.

Features:

  • Define default theme options for any component or manialink
  • Override themes from core or other modules
  • Replace components fully with other components
  • Provides default theme options such as primary and secondary colors, as well as utility colors.
  • Can override theme options from the config.
  • Several utilities for font and colors.
  • The general theme object and some utilities are available as global variables in mainalinks.
  • Add all available in-game icons defined in a class for easy access.

All existing templates has been updated to use the new theme system (main reason for so many changed files).

ManiaTemplates is also updates which includes global variables.

This was linked to issues Dec 6, 2023
src/EvoSC.Common/Themes/ThemeManager.cs Outdated Show resolved Hide resolved
src/EvoSC.Common/Util/ColorUtils.cs Outdated Show resolved Hide resolved
src/EvoSC.Common/Util/ColorUtils.cs Outdated Show resolved Hide resolved
src/EvoSC.Common/Util/ColorUtils.cs Show resolved Hide resolved
src/EvoSC.Manialinks/Templates/FormEntry.mt Outdated Show resolved Hide resolved
src/EvoSC.Manialinks/Util/GameIcons.cs Outdated Show resolved Hide resolved
src/EvoSC/ApplicationSetup.cs Show resolved Hide resolved
src/Modules/ASayModule/ASayModule.csproj Show resolved Hide resolved
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

17.0% 17.0% Coverage
0.0% 0.0% Duplication

@snixtho snixtho merged commit e072604 into master Dec 12, 2023
3 checks passed
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.

Components should be theme-able UI/UX Design
3 participants