AprilSylph / Palettes-for-Tumblr

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

Fix accent colors not applying #185

Closed marcustyphoon closed 1 month ago

marcustyphoon commented 1 month ago

User-facing changes

Fixes accent colors not being affected by the extension due to a Tumblr code change that I didn't really look into.

Technical explanation

Applies what used to be an accent override to the deprecated-accent CSS variable as well; this results in no changes being needed to custom palettes as well as built-in palette data.

I assume the change to this variable name could be a sign of more things to come that could be problematic for custom palettes still working without tweaks/migration? But if so, that can be a problem for later.

Issues this closes

Resolves #183, resolves #182

marcustyphoon commented 1 month ago

Ah, I see. It looks like --accent is being repurposed into a part of a system of colors with variations, and that in that system the variables are colors rather than numerical triplets?

That I can tell, these new colors appear to be hardcoded; if that's the case I assume we don't want to touch them, as overriding only some would lead to inconsistency. Thus, if my interpretation is right we should be sure to only modify --deprecated-accent, and decline to modify --accent? I should make a second tweak to https://github.com/new-xkit/XKit/pull/2141 if so.