Zettelkasten Forum


Can you help with a theming dilemma?

When searching my archive for a term, the first instance of a term in a note will have a "backgroundColor" that doesn't seem to respond to the "backgroundColor" or the "unfocusedBackgroundColor". As soon as it is selected it becomes focused and changes to the "backgroundColor".

Is there a way to get the initial instance of the hit to match the highlighted backgroundColor?

Here are two screenshots showing the behavior. This is using @Basil's PrettyFunctional theme.

After selection the first instance.

Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. My peak cognition is behind me. One day soon, I will read my last book, write my last note, eat my last meal, and kiss my sweetie for the last time.
kestrelcreek.com

Comments

  • When you have "highlight search terms" on, the first match is actually pre-selected. That's why it doesn't have the highlight color, but the inactive selection color.

    This behavior was part of the earliest things we had in The Archive to mimick the interaction with Notational Velocity. I for one haven't taken a fresh look at the NV clichés in the last 3 years. So this could be a good reminder when we work on v2.

    In other words, the general behavior is not a bug, and theme authors cannot do much. I did notice some inconsistencies in coloring in v1.7.0 and will see where these stem from. So the overall situation might get better yet :)

    Author at Zettelkasten.de • https://christiantietze.de/

  • Well, there is more than one way to skin a cat. I switch my theme so my backgroundColor matches the default backgroundColor The Archive forces on me. I'm pretty happy with the results.

    You can see in the screenshot that all the highlights are of the same format and color. No more missing a highlight because it has a different backgroundColor, they are all the same.

    Small tweaks help my cognitively handicapped mind.

    Will Simpson
    My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. My peak cognition is behind me. One day soon, I will read my last book, write my last note, eat my last meal, and kiss my sweetie for the last time.
    kestrelcreek.com

  • edited August 2021

    Small tweaks help my cognitively handicapped mind

    @Will I wouldn't say that! Aesthetics is important for minimizing distraction and helping one get into the flow state of work. I heavily edited the look of my zettelkasten.

Sign In or Register to comment.