Logo (Builtin): use first color as title color

As what neofetch does
This commit is contained in:
李通洲
2023-09-08 21:20:32 +08:00
parent f662cc0aa2
commit 94eb3b89e8
+4 -4
View File
@@ -210,11 +210,11 @@ void ffLogoPrintChars(const char* data, bool doColorReplacement)
static void logoApplyColors(const FFlogo* logo)
{
if(instance.config.colorKeys.length == 0)
ffStrbufAppendS(&instance.config.colorKeys, logo->colorKeys ? logo->colorKeys : logo->colors[0]);
if(instance.config.colorTitle.length == 0)
ffStrbufAppendS(&instance.config.colorTitle, logo->colorTitle ? logo->colorTitle : logo->colors[1]);
ffStrbufAppendS(&instance.config.colorTitle, logo->colorTitle ? logo->colorTitle : logo->colors[0]);
if(instance.config.colorKeys.length == 0)
ffStrbufAppendS(&instance.config.colorKeys, logo->colorKeys ? logo->colorKeys : logo->colors[1]);
}
static bool logoHasName(const FFlogo* logo, const FFstrbuf* name, bool small)