Honestly, I never understood, why in $:/core/macros/tag the tagpill colours are defined as hardcoded element styles. I think CSS would make it much more hackable.
And I also never understood, how the core's contrastcolour macro, that is involved there, works or should work and if it really does what it should under all circumstances. E.g. it might be the rgba(...) part is missing here: // If neither colour is readable, return a crude inverse of the target return [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]]; But I am happy to see that you found a workaround as well as that listreveal at least works with several of the palettes included in TW 5.1.21. Thanks for trying listreveal anyway :) Am Mittwoch, 18. September 2019 21:20:00 UTC+2 schrieb Mark S.: > > *listreveal *seems to want to get the tag color from > > sidebar-tab-foreground-selected > > in the vanilla palette. But that color isn't defined in the vanilla > palette, that I can tell. There's an empty space where it should be. > > what gets generated instead, when I inspect the tag element, is > > color: 244,244,244,1 > > This creates an error (warning icon) in the element inspector. > > I'm guessing that TW was trying to make a default of rgba(244,244,244,1) > but somehow leaves off the "rgba" part. > > The same thing happens with the background color. So both have > 244,244,244,1 which doesn't do anything. The little > bit of white and gray color must be coming from somewhere else in the > cascade. > > So I can fix it for my purposes by tweaking the vanilla theme: > > sidebar-tab-foreground-selected: green > > And probably a similar thing for the background. > > It might be worth noting though, that these palette entries aren't always > defined. > > Thanks! > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fd15e02b-9887-445d-ab05-69c963ccd6d1%40googlegroups.com.