Add meme-adding logic
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -11,8 +11,8 @@ const getContrastColor = (hexColor: string) => {
|
||||
const brightness = (r * 299 + g * 587 + b * 114) / 1000;
|
||||
|
||||
return brightness > 128
|
||||
? lightTheme.colors.onSurface
|
||||
: darkTheme.colors.onSurface;
|
||||
? lightTheme.colors.onBackground
|
||||
: darkTheme.colors.onBackground;
|
||||
};
|
||||
|
||||
const isHexColor = (color: string) => {
|
||||
|
Reference in New Issue
Block a user