AprilSylph / Palettes-for-Tumblr

🎨 Colour scheme manager for Tumblr
GNU General Public License v3.0
30 stars 8 forks source link

Notification and New Post Buttons wont change #192

Open Pixielart opened 1 month ago

Pixielart commented 1 month ago

Platform

Win 11

Browser

Chrome

Addon version

1.1.0

Details

Tumblr has changed the code for the Notifs and Post buttons, palettes doesn't change their colour anymore

morphinpink commented 3 weeks ago

I've noticed this too :( I made this style for stylus to fix it:


.jGgIg .ML6ef { 
  background-color: var(--color-primary-link);
} 

.jGgIg .ML6ef:hover { 
  background-color: var(--color-primary-link);
} 

.jpu7k {
  background: var(--color-primary-link); 
}

I don't know if sharing it would help the bug get fixed faster but in the meantime that should work!

marcustyphoon commented 3 weeks ago

This will work in more places/be more resilient to changes:

:root {
  --chrome-ui: rgb(var(--deprecated-accent));
}

There are a bunch of colors this technique won't work on, though, such as the color applied when hovering over the post button. So it's not a complete solution and to make one we'll probably have to rethink some things.

morphinpink commented 3 weeks ago

This will work in more places/be more resilient to changes:

:root {
  --chrome-ui: rgb(var(--deprecated-accent));
}

There are a bunch of colors this technique won't work on, though, such as the color applied when hovering over the post button. So it's not a complete solution and to make one we'll probably have to rethink some things.

Would this work on Firefox?

AprilSylph commented 3 weeks ago

chrome in that code snippet does not refer to Google Chrome. It's just part of a variable name that Tumblr uses. So yes, it will.

morphinpink commented 3 weeks ago

chrome in that code snippet does not refer to Google Chrome. It's just part of a variable name that Tumblr uses. So yes, it will.

thank you! i'll use that then.