Syncxv / vc-message-logger-enhanced

GNU General Public License v3.0
91 stars 11 forks source link

Fix popout window message colour #42

Open net-wayfarer opened 2 months ago

net-wayfarer commented 2 months ago

Description of Changes

Sets Messge Logger Enhanced's popout window for displaying deleted (text) messages the same colour as regular text message within Discord's chat buffer. This mimics mlv2's behaviour.

Rationale behind Changes

Vencord's [Message Logger] hardcodes deleted messages element as warning text, which is red. This colouring can make it unsuitable when:

By redefining deleted messages colour for Message Logger Enhanced's popout window to dynamic variants e.g. color: var(--text-normal), it can potentially help with legibility. This change also make Message Logger Enhanced's popout window be a bit more similar to mlv2 when it comes to deleted text messages.

Suggested Testing Steps

/ Markdown title highlighting / div[class="messagelogger-deleted"] [class="contents"] :is(h1, h2, h3) { color: var(--text-normal) !important; }

/ Bot "thinking" text highlighting / div[class="messagelogger-deleted"] [class="colorStandard"] { color: var(--text-normal) !important; }

/ Embed highlighting / div[class*="messagelogger-deleted"] article :is(div, span, h1, h2, h3, p) { color: var(--text-normal) !important; }

div[class*="messagelogger-deleted"] a { color: var(--text-link) !important; text-decoration: underline; }


* Open Message Logger Enhanced's popout window,
* Changes should be visible.

[Message Logger]: https://github.com/Vendicated/Vencord/blob/main/src/plugins/messageLogger/deleteStyleText.css