• AVR Freaks

Harmony 2.03b Graphics Composer Colours

Author
luker
Super Member
  • Total Posts : 182
  • Reward points : 0
  • Joined: 2015/04/17 06:24:04
  • Location: 0
  • Status: offline
2018/03/19 10:01:00 (permalink)
0

Harmony 2.03b Graphics Composer Colours

Hi there,
 
since I failed removing libAria-based UI drawing from a working project and just draw a grey rectangle with GFX_DrawRect(), I gave in and am using the Graphics Composer Screen Designer now.
I have a label on Layer0 on Screen that displays elapsed time. The label has grey background and black digits on it. I would like to change that to black background and, say, green digits. I just don't find where to change that.
 
The nearest thing I came to was to change the Scheme. Now, I'm using "defaultScheme", but neither "" nore "RedScheme" change anything.
 
I also tried in code
defaultScheme.foreground = GFX_COLOR_GREEN;
 
defaultScheme.(b.a.c.k)ground = GFX_COLOR_BLACK;
This doesn't change anything either.
 
How am I supposed to change colours in libAria-based UIs?
 
 
P.S.: of course, you have to use b.a.c.k without the s.i.l.l.y dots. Can anyone stop this elephanting word filter?
post edited by luker - 2018/03/19 10:08:05
#1
bordlab
Starting Member
  • Total Posts : 57
  • Reward points : 0
  • Joined: 2018/01/29 06:45:53
  • Location: 0
  • Status: offline
Re: Harmony 2.03b Graphics Composer Colours 2018/03/20 10:42:53 (permalink)
0
1. Create a new scheme in the Schemes window of the Graphics Composer.
     Change text color to green
     Change the background to black
2. Put your widget (text field or whatever) on the screen.
3. In the properties change the Scheme to the one you created.
4. Save Graphics Composer window.
5. In harmony Configurator re generate the code using the Code button
6. Build and flash your device.
 
Let me know if you have any questions.
#2
Jump to:
© 2020 APG vNext Commercial Version 4.5