tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Choose the background color of tilesets control

Open NinjaFighter opened this issue 14 years ago • 15 comments

Could be good, allow the user to set a background color for the tileset control, I have some problems to visualize my tiles when I have tiles that using only white pixels.

NinjaFighter avatar Jun 20 '12 01:06 NinjaFighter

+1 All my tiles white colors and very difficult to work with editor. Please allow user to change background color for tilesets tool window.

playbee avatar May 03 '13 10:05 playbee

This would be very useful. I also have white-only tiles and it's a bit of a pain to try to remember which is which.

gimblll avatar May 28 '14 06:05 gimblll

+1, also working with white tileset here.

yaaun avatar Jun 05 '14 17:06 yaaun

+1 The best work around I have is to use Windows high-contrast mode (keyboard shortcut Left-Alt + Left-Shift + PrtScn) which gives it a black background, but that puts other programs such as Eclipse and Gimp in a bad visual state.

voxoid0 avatar Dec 12 '15 11:12 voxoid0

Until I've implemented an option for this, a somewhat better workaround would be to create a file with the following contents (say style.qss):

QDockWidget#TilesetDock QAbstractItemView { background: grey }

And then run Tiled as follows:

tiled -stylesheet style.qss

This way, you just make the background of the tileset view gray without affecting other things.

bjorn avatar Dec 21 '15 15:12 bjorn

The above change implements a new tileset property for the background color, which defaults to the same gray as used for the map view. It is pushed to the wip/tilesetdocument branch, which I will merge as soon as possible but it will still be quite a bit of work.

bjorn avatar Jun 12 '16 10:06 bjorn

With Tiled 0.17, the theme can be set to dark, which will at least help those with light tilesets until the above configuration option is merged.

bjorn avatar Aug 15 '16 15:08 bjorn

In version 0.18.2 (Mac OS X) I do not have a background color property in the properties palette to the left. Or do I have to use a custom property for the tileset?

reneaye avatar Mar 29 '17 10:03 reneaye

@reneaye That is because this feature was added on the master branch after Tiled 0.18 was branched off. If you're looking to configure the background color of your tileset, you need to install a development snapshot (or wait for Tiled 1.0, though that will still take 1-2 months).

bjorn avatar Mar 29 '17 11:03 bjorn

The darker tileset background helps tremendously! Even better if I choose a dark theme color. Thumbs up.

Bobjt avatar Apr 26 '17 04:04 Bobjt

SOLUTION:

Edit -> Settings -> Interface -> Theme Set the "Style" setting to Native

(This disables Tiled's fancy theme, and enables the default windows theme for Tiled, which makes the tileset background color, grey)

Julian-MM avatar Apr 27 '19 13:04 Julian-MM

@Julian-MJK With Native theme, that color will depend on your system. But this solution is also a bit radical. Since Tiled 1.0, you can set a custom background color for your tileset in the Tileset properties, which will override the theme color when set.

bjorn avatar Apr 27 '19 20:04 bjorn

Oh really? That would be great, because the default windows theme looks pretty rubbish, however I've never seen that option, where can you change that?

Julian-MM avatar Apr 28 '19 09:04 Julian-MM

@bjorn, the new (as of Tiled 1.0) tileset background color literally made my day. Cheers.

Bobjt avatar Apr 29 '19 15:04 Bobjt

@Julian-MJK Open your tileset (clicking the small "Edit Tileset" button in the Tilesets view, or opening its file directly) and then choose Tileset > Tileset Properties.... Then, you can set the "Background Color" in the "Properties" view.

@Bobjt I'm glad to hear this feature was such a joy. :-)

bjorn avatar Apr 29 '19 19:04 bjorn