Main tile?

hi i am work on a custom dth it is a switch
is there away on the main tile to change the tile color from white to re if the switch is on

All the built-in switch dths change the color of the main tile when their on so use one of those as an example…

3 Likes

@krlaframboise
i known the on off changes color I went to hole main tile to change
when i say main tile i mean the first screen were you have the device name ad on or off

@krlaframboise the red area is around what i would like to color

Sidesync_capture_20190520135052_1

The only things you can change in the DTH are the icon and the color of the button…

1 Like

@krlaframboise is color change backgroundcolor ?

The blue rectangle around “on” and white rectangle around “off” shown in your screenshot are caused by the backgroundColor attribute.

2 Likes