Things are somewhat complex, as the whole "color change" and "color customization" is improving recently, as a lot of work is done in "color customization" and "many little places" where things are not so smoth are found and fixed.Axeia wrote: ↑Tue Oct 04, 2022 2:50 pm ...
If changes are made to the FreeCAD code I'd be in support of simply adding a class named "alias" or "aliased" so themes can simply target it asIt's a lot easier to read than the the whole "qproperty-AliasedCellBackgroundColor" syntax. It also makes it easier for people (like me) that have a CSS rather than a Qt Style Sheets background to understand what's going on.Code: Select all
QTableView::item.aliased{ background-color: teal; }
From what I know about Qt changing QTableView::item setting will spread across FC even in places where maybe you will not know that is used, so probably some more verbose name has to be used, to refer maybe to a specific use of the QTableView widget, like the Spreadsheet alias you intend to change.
Probably trying to find some "meaningful names" that maybe use some abbreviations like AliasSSBckCol as a rough example will be a more "clever setting", as it could be retrieved and applied to a specific use of QTableView control.
But as UI is not my most known part of FC I leave to more skilled people to make such type of decision.
Regards
Carlo D.