diff options
-rw-r--r-- | skinconfig.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/skinconfig.c b/skinconfig.c index a564289..b387e74 100644 --- a/skinconfig.c +++ b/skinconfig.c @@ -124,6 +124,8 @@ typedef enum _eTokenId tokSkinPath, tokScreenWidth, tokScreenHeight, + tokDefaultForegroundColor, + tokDefaultBackgroundColor, tokPrivateSettingStart, tokSettingShowChannelLogo, @@ -251,6 +253,8 @@ static const std::string Tokens[tokCountToken] = "SkinPath", "ScreenWidth", "ScreenHeight", + "DefaultForegroundColor", + "DefaultBackgroundColor", "privateSettingStart", "SettingShowChannelLogo", @@ -733,6 +737,18 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token) const GLCD::cBitmap * bitmap = mDisplay->GetScreen(); return bitmap->Height(); } + case tokDefaultForegroundColor: + { + char buffer[9]; + snprintf(buffer, 8, "%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor())); + return buffer; + } + case tokDefaultBackgroundColor: + { + char buffer[5]; + snprintf(buffer, 8, "%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor())); + return buffer; + } default: break; } |