Move global stylesheet to lobby and courtroom

This way, it will not affect the options dialog.
This commit is contained in:
oldmud0 2021-06-08 22:50:32 -05:00
parent dcce175052
commit 2cb7ca7895
3 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,7 @@ AOApplication::AOApplication(int &argc, char **argv) : QApplication(argc, argv)
discord = new AttorneyOnline::Discord();
QObject::connect(net_manager, SIGNAL(ms_connect_finished(bool, bool)),
SLOT(ms_connect_finished(bool, bool)));
// qApp->setStyleSheet("QFrame {background-color:transparent;} QAbstractItemView {background-color: transparent; color: black;}; QLineEdit {background-color:transparent;}");
asset_lookup_cache.reserve(2048);
}

View File

@ -1222,6 +1222,12 @@ void Courtroom::set_stylesheet(QWidget *widget)
void Courtroom::set_stylesheets()
{
set_stylesheet(this);
this->setStyleSheet(
"QFrame { background-color:transparent; } "
"QAbstractItemView { background-color: transparent; color: black; } "
"QLineEdit { background-color:transparent; }"
+ this->styleSheet()
);
}
void Courtroom::set_window_title(QString p_title)

View File

@ -235,6 +235,12 @@ void Lobby::set_stylesheet(QWidget *widget)
void Lobby::set_stylesheets()
{
set_stylesheet(this);
this->setStyleSheet(
"QFrame { background-color:transparent; } "
"QAbstractItemView { background-color: transparent; color: black; } "
"QLineEdit { background-color:transparent; }"
+ this->styleSheet()
);
}
void Lobby::set_font(QWidget *widget, QString p_identifier)