I'm working on a Dark Theme as all the included dark themes weren't quite dark enough for my tastes and many had weird little glitches.
My theme is based on the by default included Dark-Contrast one, I am running into a problem with aliased spreadsheet cells. By default these have a yellow background color, as I have set my spreadsheet cells to have a white foreground (font) color this gives me white on yellow which is unreadable.
If I set a background-color on all spreadsheet cells the yellow color gets overwritten but then aliased cells don't stand out.
Doomed if I do, doomed if I don't. Is there a way to target an aliased cell specifically? Does it have a special attribute that can be targeted?
I have tracked down the line of code in FreeCADthat sets the yellow color if no background color is set over here:
https://github.com/FreeCAD/FreeCAD/blob ... el.cpp#L56
Code: Select all
aliasBgColor = QColor(Base::Tools::fromStdString(hGrp->GetASCII("AliasedCellBackgroundColor", "#feff9e")));
I have no experience with Qt/C++ so I'm not quite sure what good this does me other than figuring out that aliased cells have a tooltip and perhaps elements with a tooltip can be selected through QSS somehow. Unless I'm overlooking it there doesn't seem to be anything set on the cell that would be equal to the CSS equivalent of a class.
Can anyone that's more knowledgeable about Qt/C++ help me out here? Can I target aliased cells in qss somehow? Should I submit a feature request on github for it to be added if not?
[edit]
I tried (to no avail)
Code: Select all
QTableView::item[tooltip], QTableView::item[toolTip], QTableView::item[Tooltip]{
background: black;
}