mapeditor / mapeditor/tiled

Layer tint color doesn't affect shapes

Open
#4,183 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

**Describe the bug**
The tint color property in layers doesn't seem to affect objects, the Color property does tint shapes, but this property is not documented neither in the JSON format or the API.

**To Reproduce**
Steps to reproduce the behavior:
1. Set the value for Tint color in a layer with shapes.
![Image](https://github.com/user-attachments/assets/a38c1d4e-73d8-4356-9688-73809e853f63)
2. The shapes are not tinted.
3. Set the value for Color in a layer with shapes.
![Image](https://github.com/user-attachments/assets/60d309e6-bb64-4b89-bec5-0615a19c9a4a)
4. The shapes are tinted.
5. The Map JSON now has a property `color`

**Expected behavior**
Tint the shapes when setting the layer property TintColor.

**Specifications:**
- OS: Linux
- Tiled Version: 1.11.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Tiled 1.11.2 by comparing a layer's TintColor and Color properties on shapes, then inspect the layer shape-rendering path and the JSON/API handling for these properties. Done means TintColor visibly tints the shapes and the behavior is covered consistently with the existing Color behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.