mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Twitch Custom Power-Ups now use the background color of the power-up, not a generic Purple
This commit is contained in:
@@ -1195,7 +1195,12 @@ async function TwitchCustomPowerUpRedemption(data) {
|
|||||||
const contentDiv = instance.querySelector("#content");
|
const contentDiv = instance.querySelector("#content");
|
||||||
|
|
||||||
// Set the card background colors
|
// Set the card background colors
|
||||||
cardDiv.classList.add('twitch');
|
// cardDiv.classList.add('twitch');
|
||||||
|
const baseColor = data.custom_power_up.backgroundColor; // e.g., #3498db
|
||||||
|
|
||||||
|
// B3 = 70% opacity
|
||||||
|
// FF = 100% opacity
|
||||||
|
cardDiv.style.background = `linear-gradient(180deg, ${baseColor}B3 0%, ${baseColor}FF 100%)`;
|
||||||
|
|
||||||
if (showAvatar) {
|
if (showAvatar) {
|
||||||
// Render avatars
|
// Render avatars
|
||||||
|
|||||||
Reference in New Issue
Block a user