Rename modelBmp using new 'displayName', add more options (#544)

* Make img buf only size of img not whole widget

* Don't draw buffer if there's no image

* If there's no image, draw model name

* Add some options, draw model name if img not set
Add options for text colour, size, fill enable and colour

* Use valid values for defaults

* Get right colours

* Add concept of a 'friendly name to widgets'
Allows for separation of internal and user visible names

* Use new theme constants

* Use right version of libopenui

* `displayName` instead of `friendlyName`

* Allow using theme colour or custom for name
This commit is contained in:
Peter Feerick
2021-11-08 21:27:38 +11:00
committed by GitHub
parent 809db51509
commit e6697639c7
8 changed files with 62 additions and 21 deletions
+2
View File
@@ -940,3 +940,5 @@ const char STR_RACING_MODE[] = TR_RACING_MODE;
#if defined(PCBNV14)
const char STR_RFPOWER_AFHDS2[] = TR_RFPOWER_AFHDS2;
#endif
const char STR_USE_THEME_COLOR[] = TR_USE_THEME_COLOR;