How can I modify the color of the binder's secondary highlight?

I’ve successfully modified the binder selection highlight color by changing the RGBA value in the .qss file:

The result is the solid purple highlight on “Chapter 1” in the next image. So far, so good.

However, I do not see how to modify the secondary highlight in the binder, which appears to be a low-alpha version of the binder selection highlight (just guessing). It’s the faint color you see in the binder for Scene 2:

My question: How do I modify the secondary highlight color in the binder, or at least its alpha value?

I don’t know. But you have access to the same method I would try to find out if I had the time to do it. I know I’ve been looking for it, and it’s on my ToDo list… So, interesting…

I’ll try some .qss code ideas and report back, but I wonder if Scrivener handles the secondary highlighting dynamically outside of the .qss file. If so, it would be a hard-coded feature that can’t be modified by modifying the .qss file, I suppose.

1 Like

Tried to color that CurrentEditorDocIndicator, but had no luck.
I found the SCRBinderTreeView object, but it doesn’t seem to be able to show itself.
Maybe the normal QTreeView object QSS rules overrule that object?

That’s what I was wondering. I haven’t had a chance yet to try adding some QSS code, but here are some ideas I was going to try once I got a chance (a total shot in the dark):

QTreeView::item:focus {
    background-color: rgba(150, 90, 190, 120); /* Semi-transparent purple */
}
QTreeView::item:selected {
    background: rgba(85, 0, 127, 120); /* Lower-opacity purple */
}
QTreeView::item:selected:active {
    background-color: rgba(85, 0, 127, 255); /* Bright purple for active */
}
QTreeView::item:selected:!active {
    background-color: rgba(85, 0, 127, 120); /* Dimmed purple for inactive */
}

It would be helpful to hear from the development team on this one. :slight_smile:

My attempts to solve this with some QSS code were unsuccessful.