Closed muellni closed 7 years ago
A widget needs to have a parent set to use parent's theming. From what I can see you use loadUi to make the widget, and I guess it doesn't set any parents. I'd suggest making a separate class for the dialog (as UI) that uses loadUiType, moving all the UI stuff there, then creating and operating on this in place of loadUi (passing it client as parent).
setting the dialogs parent was the thing which I implemented today, so the ConnectivityDialog is now themed. Only things missing is the vertical and horizontal headers of the QTableWidget I use
The vertical header still needs theming
fixed now I hope
now the second table entry still has a wrong background color
should be fixed ... again: https://github.com/FAForever/client/blob/feature/ice-adapter/res/client/client.css#L237
The QTableWidget vertical and horizontal headers need to be styled. Using
QHeaderView::section { background-color: green; }
inclient.css
didn't work.