-
-
Notifications
You must be signed in to change notification settings - Fork 482
Add transparent color #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
discord.Color.transparent() -> Method that returns a cls(0x2F3136) (embed bg color)
|
This is not transparent for light mode users or AMOLED mobile users. |
as i know, for light/amoled themes there's any color that can be considered transparent.. it should be just an utility to have a "transparent" color ready to use, instead need to search for it. (another consideration: there's still people that seriously use light mode?) |
Co-authored-by: proguy914629 <74696067+proguy914629bot@users.noreply.github.com>
You shouldn't leave out a minority. This also could be misleading that it's actually a transparent colour. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Yes, I agree. I think adding this method is fine, but it just can't be called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if this was changed to have a parameter theme of type Literal("dark", "light", "amoled") and defaulted to "dark", each theme corresponding to its inherent theme, it would work. I would also suggest that classmethods be added for light and amoled, and this method accessed those.
I personally don't like this either, because again, this isn't transparent. That's just a misleading method name. I understand where you're coming from, but "blending into one user's background" does not make something transparent. Also, if Discord ever does create a transparent option for certain UI, then it will be helpful to not have this method implemented. However, I do like the idea of adding three explicit methods to match the dark/light/AMOLED colors. |
Maybe rename |
I would just suggest not adding this method. Even if you specified the theme, it will need a parameter, which I see you suggest as using But why even add another enum? I would just suggest making three new methods, something like |
|
This is useless due to bots not being able to know which theme a user is using, this means that if someone choses 'light_transparent' for example, it wont show on dark theme vice versa. |
|
i unluckily don't have amoled theme, if someone else have it, feel free to add cls for transparent embed for amoled by himself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed typo in constructor and changed classmethod name to embed_background with theme argument defaulted to "dark" (missing amoled)
It's just pure black. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See suggested changes
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev>
Head branch was pushed to by a user without write access
|
oh |
|
Could you document the |
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
discord.Color.transparent() -> Method that returns a cls(0x2F3136) (embed bg color)
Summary
Checklist