Skip to content

Commit

Permalink
add custom frames only if using fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Sep 15, 2024
1 parent 316c6a7 commit 4c71ea9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/HeadsetControlQt/headsetcontrolqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <QDir>
#include <QMessageBox>
#include <QStandardPaths>
#include <QStyleFactory>

#ifdef _WIN32
const QString HeadsetControlQt::headsetcontrolExecutable = "dependencies/headsetcontrol.exe";
Expand Down Expand Up @@ -90,8 +91,11 @@ void HeadsetControlQt::handleHeadsetInfo(const QJsonObject &headsetInfo)

void HeadsetControlQt::initUI()
{
setFrameColorBasedOnWindow(this, ui->frame);
setFrameColorBasedOnWindow(this, ui->frame_2);
QString currentStyle = QApplication::style()->objectName();
if (currentStyle == QStyleFactory::create("Fusion")->objectName()) {
setFrameColorBasedOnWindow(this, ui->frame);
setFrameColorBasedOnWindow(this, ui->frame_2);
}
populateComboBoxes();
checkStartupCheckbox();
}
Expand Down

0 comments on commit 4c71ea9

Please sign in to comment.