Style updates

This commit is contained in:
Sean Edmunds
2025-06-23 16:43:32 -05:00
parent 63e087cdfe
commit 3c3f4072f7
9 changed files with 279 additions and 50 deletions

View File

@@ -89,9 +89,19 @@ function ThemeCard({
h={'115px'}
disabled={currentTheme === 'random'}
style={{
background: `linear-gradient(${cardTheme.backgroundColor}33, ${cardTheme.backgroundColor}33), no-repeat center url(../../api/backgroundImages/${cardTheme.backgroundImage})`,
backgroundSize: 'cover',
backgroundColor: cardTheme.backgroundColor,
backgroundImage:
cardTheme?.backgroundImage.toLocaleLowerCase() !== 'none'
? `linear-gradient(${cardTheme?.backgroundColor}33, ${cardTheme?.backgroundColor}33), url(../../api/backgroundImages/${cardTheme?.backgroundImage})`
: undefined,
backgroundSize:
cardTheme?.backgroundImage.toLocaleLowerCase() !== 'none'
? 'cover'
: undefined,
backgroundColor:
cardTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? cardTheme?.backgroundColor
: undefined,
backgroundPosition: 'center',
border: `solid ${cardTheme.borderColor}`,
filter: cardTheme.randomEnabled === 0 ? 'saturate(0)' : undefined,
}}