cancel
Showing results for 
Search instead for 
Did you mean: 

Define color variables for TouchGFX UI

Tales Somensi
Associate II

Hi everyone.

I've been trying to create an header file with some default colors for an user interface. Apparently, TouchGFX has a struct called colortype that is used as a type for colors. I created an .hpp file, included touchgfx/Color.hpp and tried to define variables with type "colortype". It doesn't build, I get the compiler message " 'colortype' does not name a type". What would be a proper way of defining some global default colors into a header file to be included into other ui files?

10 REPLIES 10

Hello FToff.1,

Thank you for your suggestion. We'll take it into account.

If you want your idea to be more visible, I suggest you to add it to the Idea section here.

/Alexandre