Skip to main content
Open

Separate color for detail tiles

Related products:Software FactoryWindows GUIUniversal GUI
Ricky
J. de Lange
  • Ricky
    Ricky
  • J. de Lange
    J. de Lange

Jop ter Horst
Vanguard
Often I have white tiles in my application, because my backplate has a lot of color. But I want to use detail tiles in my (mostly) white screens, but detail tiles have the same color as regular tiles.

I'd like to be able to set a divergent color for detail tiles.
Did this topic help you find an answer to your question?

6 replies

Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 497 replies
  • August 28, 2019
Hi Job,

Right now the icon is stretched out over the whole detail tile, so you could put a background colour on the icon.

We don't recommend to use this in the icon and we are thinking about a better solution to configure tile colours.

Regards, Erik

Jop ter Horst
Vanguard
Forum|alt.badge.img+5
  • Author
  • Vanguard
  • 20 replies
  • August 28, 2019
Hi Erik,

I'm sure that's possible, but I tried to get a svg icon the exact right size for the tile but that is quite difficult. So I use a .png for the tiles instead. Also, I think it would be more user friendly to be able to change detail tile colors.

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 653 replies
  • August 30, 2019
Hi Jop,

You are not the first person to ask for this feature. We've already explored the possibilities of incorporating this into the model. Some developers would also like to change the color of a tile dynamically based on logic.

Our conclusion was that the most elegant way to do this is by extending badge logic to be able to return a color. Or rather, the badge logic would be able to return a state id that corresponds to a text color and background color defined in the model (e.g. warning_low_stock or approval_pending).

The colors of the state chosen by the badge logic would be applied to the badge itself in list bar menus and tree menus. Ideally, badges on detail tabs would also be restyled to be able to support coloring. When it comes to tiles, the colors would determine the (detail) tile text color and background color.

How do you feel about this solution?

Jop ter Horst
Vanguard
Forum|alt.badge.img+5
  • Author
  • Vanguard
  • 20 replies
  • August 30, 2019
Hi Anne,

That would be great! How about the tile icon? Does the GUI alter the icon color as well or is this something the developer should keep in mind?

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 653 replies
  • August 30, 2019
Good point. I suppose we can facilitate this when colorless SVG's are used. It would make sense for the tile icon to use the same color as the text.

When the background changes to black and the text changes to white, the tile icon would also change to white.

Jop ter Horst
Vanguard
Forum|alt.badge.img+5
  • Author
  • Vanguard
  • 20 replies
  • August 30, 2019
Yes that would make sense, I'm looking forward to this feature!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings