aboutsummaryrefslogtreecommitdiff
path: root/common/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'common/helpers.ts')
-rw-r--r--common/helpers.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/helpers.ts b/common/helpers.ts
index 029df25..208b3f6 100644
--- a/common/helpers.ts
+++ b/common/helpers.ts
@@ -96,7 +96,9 @@ const getSimpleIconsImageURI = function (language: string, theme: Theme) {
const icon = LANGUAGE_ICON_MAPPING[language]
if (!icon) return undefined
- const iconColor = theme === Theme.light ? `#${icon.hex}` : `#${icon.hex}`
+ const iconColor =
+ language === 'GitHub' && theme === Theme.dark ? '#fff' : `#${icon.hex}`
+
const iconSvg = icon.svg.replace('<svg ', `<svg fill="${iconColor}" `)
return `data:image/svg+xml,${encodeURIComponent(iconSvg)}`