Goose-Nest / GT-RevertRebrand

GT theme to revert Discord's 2021 rebrand.
MIT License
106 stars 40 forks source link

Old colors are not applied in certain cases (overrided by Discord) #84

Open Kiki79250CoC opened 2 years ago

Kiki79250CoC commented 2 years ago

I know it's ""semi-abandoned"", but I post this anyway, as the fix seems to be pretty simple to deploy if the dev wants to fix it one day.


As the title says, the old colors are not applied because they're overrided by another Discord color set.

Buttons with old color (Firefox) and new ones: image

View of the values when "Leave server" button text is selected in devtool: image

The only workaround I see for the moment is to use that awful "!important" marker on the incrimined lines.

For the "Invite" button, I'm not sure if this is because i'm familiarized with the "new" color without remarking it, so maybe this issue is not valid for the "Blurple" colors set.

Kiki79250CoC commented 2 years ago

The workaround:

.theme-dark, .theme-light {
  /* Revert new green to old color */
  --info-positive-foreground: var(--old-green);
  --status-positive-background: var(--old-green);
  --text-positive: var(--old-green);

  /* Revert new red to old color */
  --text-danger: var(--old-red);
  --info-danger-foreground: var(--old-red);
  --status-danger-background: var(--old-red);
}
.colorDanger-3n-KnP.focused-3qFvc8 {
    background-color: var(--old-red);
    color: #ffffff;
}