Login  Register

StyleSheet for Layer Tree?

Posted by Jamason1182 on Mar 21, 2025; 7:02pm
URL: https://forum.librecad.org/StyleSheet-for-Layer-Tree-tp5726758.html

I'm working with the style sheet as I get migraines so I keep all my apps on a dark mode. The latest build I successfully built is 2.2.2.6-alpha.

I have almost everything the way I want, but cannot get the Layer Tree itself to update the background color.
I've tried
QTreeView {
     background-color: darkgrey;
     selection-color: navy;
     selection-background-color: lightgrey;
     color: white;
     font-size: 12px;
}

Color works and font-size works, but background-color and selection-color and selection-background-color do not work. I tried even adding the CSS standard !important to the background lines (thinking they are overridden somewhere else) but to no avail. I've included a screen capture of what I'm seeing. (and yes, the QTreeView section I said before is at end of style sheet so should be nothing in my style sheet overriding the values)