Skip to content

Conversation

@IvanMurzak
Copy link
Owner

Introduce multiple color binders to manage theme colors for different Unity components, including Renderers, MeshRenderers, and LineRenderers. Update the TextMeshPro color binder to use TMP_Text and refactor tests accordingly for consistency and clarity. Remove the Asset Store badge from the README for a cleaner presentation.

@IvanMurzak IvanMurzak self-assigned this Nov 24, 2025
@IvanMurzak IvanMurzak requested a review from Copilot November 24, 2025 09:49
@IvanMurzak IvanMurzak added bug Something isn't working enhancement New feature or request labels Nov 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Unity Theme system by introducing multiple color binders for various renderer types and refactors the TextMeshPro color binder to use the more generic TMP_Text base class instead of TextMeshProUGUI. The changes improve consistency and expand theme color binding support to additional Unity components.

Key Changes:

  • Added color binders for Renderer, MeshRenderer, LineRenderer, and SpriteShapeRenderer components
  • Refactored TextMeshProColorBinder to use TMP_Text instead of TextMeshProUGUI for broader compatibility
  • Updated all test files to reflect the TMP_Text naming change

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Unity-Theme/Assets/root/Scripts/Binders/Base/GenericRendererColorBinder.cs New base class for renderer-based color binders supporting material color properties
Unity-Theme/Assets/root/Scripts/Binders/RendererColorBinder.cs New binder for generic Renderer components
Unity-Theme/Assets/root/Scripts/Binders/MeshRendererColorBinder.cs New binder specifically for MeshRenderer components
Unity-Theme/Assets/root/Scripts/Binders/LineRendererColorBinder.cs New binder supporting LineRenderer start/end color properties
Unity-Theme/Assets/root/Scripts/Binders/SpriteShapeRendererColorBinder.cs New binder for SpriteShapeRenderer components
Unity-Theme/Assets/root/Scripts/Binders/TextMeshProColorBinder.cs Refactored to use TMP_Text instead of TextMeshProUGUI
Unity-Theme/Assets/root/Scripts/Binders/SelectableColorBinder.cs Updated component menu attribute
Unity-Theme/Assets/root/Scripts/Binders/ButtonColorBinder.cs Updated component menu attribute, removed unused using statement
Unity-Theme/Assets/root/Scripts/Utils/LogableMonoBehaviour.cs New utility class providing standardized logging methods for MonoBehaviour
Unity-Theme/Assets/root/Scripts/Unity.Theme.asmdef Added UnityEngine.UI assembly reference
Unity-Theme/Assets/root/Tests/Runtime/ColorBinder/*.cs Updated test method names from TextMeshProUGUI to TMP_Text
Unity-Theme/Assets/root/Tests/Editor/ColorBinder/*.cs Updated test method names from TextMeshProUGUI to TMP_Text
README.md Removed Asset Store badge and reformatted binder list
Unity-Theme/Assets/root/README.md Removed Asset Store badge and reformatted binder list
Unity-Theme/.gitignore Added MCP servers configuration exclusion
Unity-Theme/Assets/Resources/Unity-MCP-ConnectionConfig.json Modified local development configuration settings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 36 out of 37 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IvanMurzak IvanMurzak requested a review from Copilot November 24, 2025 11:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 55 out of 57 changed files in this pull request and generated 9 comments.

Comments suppressed due to low confidence (2)

Unity-Theme/Assets/root/Tests/Editor/ColorBinder/TestColorBinder.Create.cs:51

  • Missing test coverage for new color binders. The existing test pattern in TestColorBinder.Create.cs includes tests for Image, TextMeshProUGUI, SpriteRenderer, Shadow, and Outline binders. The newly introduced binders (LineRenderer, MeshRenderer, SkinnedMeshRenderer, Renderer, Light, and SpriteShapeRenderer) should have corresponding test cases following the same pattern to ensure consistency and adequate coverage.
    Unity-Theme/Assets/root/Tests/Runtime/ColorBinder/TestColorBinder.Create.cs:51
  • Missing test coverage for new color binders. The existing test pattern in TestColorBinder.Create.cs includes tests for Image, TextMeshProUGUI, SpriteRenderer, Shadow, and Outline binders. The newly introduced binders (LineRenderer, MeshRenderer, SkinnedMeshRenderer, Renderer, Light, and SpriteShapeRenderer) should have corresponding test cases following the same pattern to ensure consistency and adequate coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IvanMurzak IvanMurzak merged commit 9149437 into main Nov 24, 2025
49 checks passed
@IvanMurzak IvanMurzak deleted the feature/material-color-binder branch November 24, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants