Update ExtendedAudio cog to use a new embed color and enhance profile generation by defining a stats area for blur effects in default.py.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
This commit is contained in:
parent
58469e28df
commit
54103024e6
2 changed files with 6 additions and 3 deletions
|
@ -77,7 +77,7 @@ class ExtendedAudio(commands.Cog):
|
|||
if embed_color:
|
||||
embed_color = discord.Color(embed_color)
|
||||
else:
|
||||
embed_color = discord.Color.blue()
|
||||
embed_color = discord.Color.from_rgb(224, 17, 95) # #e0115f
|
||||
|
||||
embed = discord.Embed(
|
||||
title="ExtendedAudio Settings",
|
||||
|
@ -139,7 +139,7 @@ class ExtendedAudio(commands.Cog):
|
|||
embed = discord.Embed(
|
||||
title="Color Updated",
|
||||
description=msg,
|
||||
color=color or discord.Color.blue()
|
||||
color=color or discord.Color.from_rgb(224, 17, 95) # #e0115f
|
||||
)
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
@ -205,7 +205,7 @@ class ExtendedAudio(commands.Cog):
|
|||
|
||||
# Get guild settings
|
||||
guild_settings = await self.config.guild(guild).all()
|
||||
embed_color = discord.Color(guild_settings["embed_color"]) if guild_settings["embed_color"] else discord.Color.blue()
|
||||
embed_color = discord.Color(guild_settings["embed_color"]) if guild_settings["embed_color"] else discord.Color.from_rgb(224, 17, 95) # #e0115f
|
||||
|
||||
# Create embed
|
||||
embed = discord.Embed(
|
||||
|
|
|
@ -205,6 +205,9 @@ def generate_default_profile(
|
|||
pfp_y = (desired_card_size[1] - pfp_size[1]) // 2
|
||||
circle_x = pfp_x
|
||||
circle_y = pfp_y
|
||||
|
||||
# Define stats area (used for blur effect)
|
||||
stats_area = (pfp_x + pfp_size[0], 0, desired_card_size[0], desired_card_size[1])
|
||||
|
||||
# Create the dark background layer that covers everything
|
||||
dark_bg = Image.new("RGBA", desired_card_size, (0, 0, 0, 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue