diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 450576ee9..f4d24a95c 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -81,6 +81,15 @@ OBSBasic::OBSBasic(QWidget *parent) { ui->setupUi(this); + char styleSheetPath[512]; + int ret = os_get_config_path(styleSheetPath, sizeof(styleSheetPath), + "obs-studio/basic/stylesheet.qss"); + if (ret > 0) { + QFile styleSheet(QT_UTF8(styleSheetPath)); + if (styleSheet.open(QFile::ReadOnly)) + setStyleSheet(styleSheet.readAll()); + } + qRegisterMetaType ("OBSScene"); qRegisterMetaType("OBSSceneItem"); qRegisterMetaType ("OBSSource");