Exemple #1
0
/**
 * @brief Ui::setLightTheme Default theme
 * Reverts all the changes made by the dark theme
 * by setting the QT Fusion style and reseting
 * the stylesheet.
 */
void Ui::setLightTheme() {

    QMainWindow* dummy = new QMainWindow();
    qApp->setStyle(QStyleFactory::create("Fusion"));
    qApp->setPalette(dummy->style()->standardPalette());
    qApp->setStyleSheet("");

    dummy->deleteLater();

    LOG(DEBUG) << "Changing UI theme to: LIGHT";
}