UI: Fix stats widget appearance on Yami themes

- QSS changes fix background color on the stats dialog.
- Making OBSBasicStats derive from QFrame fixes the background color
and round bottom corners on the stats dock.
This commit is contained in:
tytan652
2022-10-18 19:56:37 +02:00
committed by Ryan Foster
parent 0a12d6728c
commit 15689fd4bd
7 changed files with 27 additions and 2 deletions

View File

@@ -1514,3 +1514,8 @@ QCalendarWidget QAbstractItemView:disabled {
QDialogButtonBox {
dialogbuttonbox-buttons-have-icons: 0;
}
/* Stats dialog */
OBSBasicStats {
background: palette(dark);
}

View File

@@ -1502,3 +1502,8 @@ QCalendarWidget QAbstractItemView:disabled {
QDialogButtonBox {
dialogbuttonbox-buttons-have-icons: 0;
}
/* Stats dialog */
OBSBasicStats {
background: palette(dark);
}

View File

@@ -1508,3 +1508,8 @@ QCalendarWidget QAbstractItemView:disabled {
QDialogButtonBox {
dialogbuttonbox-buttons-have-icons: 0;
}
/* Stats dialog */
OBSBasicStats {
background: palette(dark);
}

View File

@@ -1506,3 +1506,8 @@ QCalendarWidget QAbstractItemView:disabled {
QDialogButtonBox {
dialogbuttonbox-buttons-have-icons: 0;
}
/* Stats dialog */
OBSBasicStats {
background: palette(dark);
}

View File

@@ -1506,3 +1506,8 @@ QCalendarWidget QAbstractItemView:disabled {
QDialogButtonBox {
dialogbuttonbox-buttons-have-icons: 0;
}
/* Stats dialog */
OBSBasicStats {
background: palette(dark);
}

View File

@@ -49,7 +49,7 @@ static QString MakeMissedFramesText(uint32_t total_lagged,
}
OBSBasicStats::OBSBasicStats(QWidget *parent, bool closeable)
: QWidget(parent),
: QFrame(parent),
cpu_info(os_cpu_usage_info_start()),
timer(this),
recTimeLeft(this)

View File

@@ -12,7 +12,7 @@
class QGridLayout;
class QCloseEvent;
class OBSBasicStats : public QWidget {
class OBSBasicStats : public QFrame {
Q_OBJECT
QLabel *fps = nullptr;