UI: Use macOS app icon for Qt app on macOS
This commit is contained in:
parent
8110b8bd65
commit
9ac92f61be
4 changed files with 16 additions and 1 deletions
|
|
@ -170,7 +170,12 @@ OBSBasicStats::OBSBasicStats(QWidget *parent, bool closeable)
|
|||
resize(800, 280);
|
||||
|
||||
setWindowTitle(QTStr("Basic.Stats"));
|
||||
#ifdef __APPLE__
|
||||
setWindowIcon(
|
||||
QIcon::fromTheme("obs", QIcon(":/res/images/obs_256x256.png")));
|
||||
#else
|
||||
setWindowIcon(QIcon::fromTheme("obs", QIcon(":/res/images/obs.png")));
|
||||
#endif
|
||||
|
||||
setWindowModality(Qt::NonModal);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue