Higlighting active document in the treeview?

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Higlighting active document in the treeview?

Post 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 1023 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 1023 times
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
MisterMaker
Posts: 739
Joined: Mon Sep 21, 2020 7:41 am

Re: Higlighting active document in the treeview?

Post 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
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Higlighting active document in the treeview?

Post 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 800 times
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
MisterMaker
Posts: 739
Joined: Mon Sep 21, 2020 7:41 am

Re: Higlighting active document in the treeview?

Post 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.
Post Reply