Page 1 of 1

Higlighting active document in the treeview?

Posted: Wed Jun 29, 2022 3:49 pm
by bambuko
At the moment (as far as I know) active document is highlighted in the tree view by using bold font?
Works reasonably well on a bog standard white background version of FreeCAD with just few documents, but....
I am using Dark stylesheet and have many documents in my assemblies.
Result is somewhat unconvincing ;)
(Yes it is 14_8ft_track that is active)
Screenshot from 2022-06-29 16.37.59.png
Screenshot from 2022-06-29 16.37.59.png (59.61 KiB) Viewed 1176 times

How difficult (or is it possible at all) would it be to change either font colour or background colour of active document?
For example there is little doubt which assembly and which body is active here :mrgreen:
Screenshot from 2022-06-29 16.47.41.png
Screenshot from 2022-06-29 16.47.41.png (67.15 KiB) Viewed 1176 times

Re: Higlighting active document in the treeview?

Posted: Tue Jul 05, 2022 11:45 am
by MisterMaker
I think I fixed that in my preference pack.
Image
But it I think it is also fixed in this version: (it's for linkstage only, but it might work, mine also works on linkstage)
https://petrikas.gumroad.com/l/midnight

Re: Higlighting active document in the treeview?

Posted: Tue Jul 05, 2022 2:35 pm
by bambuko
@MisterMaker
Clearly I haven't explained it well enough... - sorry :oops:

I am talking about document not body.
I am only using active body pic to demonstrate what I am after.
Screenshot from 2022-06-29 16.37.59.png
Screenshot from 2022-06-29 16.37.59.png (67.74 KiB) Viewed 953 times

Re: Higlighting active document in the treeview?

Posted: Tue Jul 05, 2022 7:15 pm
by MisterMaker
Ok that is an odd one, I had used this reference to style the treeview: https://doc.qt.io/archives/qt-4.8/style ... -qtreeview
But testing those styles I didn't get the ones you ask for, so I am lost too.