Skip to content

Centralize Ambient-Color management #1506

@Zabuzard

Description

@Zabuzard

Situation

Every now and then we have lines like the following in the codebase:

private static final Color AMBIENT_COLOR = Color.decode("#CFBFF5");

Mostly for embeds and similar.

What

Right now this is scattered all over. To improve the "brand" and generally make it easier to tweak stuff, all these colors should be defined in a central place instead.

How

We should introduce a class for example called AmbientColors and that should then offer all sorts of colors currently found in our codebase (fulltext search for Color and see which fit, maybe not every color should be moved) and then move it over to the new class.

Pay attention to renaming the colors so that the context of each color becomes clear. For example ThisIsScamCommand#AMBIENT_COLOR can then be renamed to AmbientColors#Moderation and be shared with the other moderation related colors (light purple iirc).

Potentially also see if the colors can be aligned a bit in purpose, up to the implementor though, not important for now.

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions