diff options
author | 2021-04-11 02:52:45 +0530 | |
---|---|---|
committer | 2021-04-11 02:52:45 +0530 | |
commit | 761548792a525b30b4e3f85f8cdc675ae4db06cb (patch) | |
tree | 5a1142b85f6e50805a651f4acc1da07d060e6ee6 /src/mainwindow.cpp | |
parent | 6a1f5875742f7f77cd6af623deb0a1c79bbb79f6 (diff) | |
download | whatsie-761548792a525b30b4e3f85f8cdc675ae4db06cb.tar.gz whatsie-761548792a525b30b4e3f85f8cdc675ae4db06cb.zip |
implemented notification timeout spinbox in settings
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 41b6429..3dfe4e6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -18,6 +18,8 @@ MainWindow::MainWindow(QWidget *parent) qApp->setQuitOnLastWindowClosed(false); lightPalette = qApp->palette(); + lightPalette.setColor(QPalette::Window,QColor("#F0F0F0"));//whatsapp light palette + setWindowTitle(QApplication::applicationName()); setWindowIcon(QIcon(":/icons/app/icon-256.png")); @@ -110,11 +112,12 @@ void MainWindow::updateWindowTheme() palette.setColor(QPalette::Disabled,QPalette::HighlightedText,QColor(127,127,127)); qApp->setPalette(palette); this->webEngine->setStyleSheet("QWebEngineView{background:#131C21;}"); //whatsapp dark color + //this->webEngine->page()->setBackgroundColor(QColor("#131C21;")); //whatsapp dark color } else{ - this->webEngine->setStyleSheet("QWebEngineView{background:#F0F0F0;}"); //whatsapp light color - lightPalette.setColor(QPalette::Window,QColor("#F0F0F0")); qApp->setPalette(lightPalette); + this->webEngine->setStyleSheet("QWebEngineView{background:#F0F0F0;}"); //whatsapp light color + //this->webEngine->page()->setBackgroundColor(QColor("#F0F0F0;")); //whatsapp light color } setNotificationPresenter(webEngine->page()->profile()); @@ -185,6 +188,10 @@ void MainWindow::init_settingWidget() } }); + connect(settingsWidget,&SettingsWidget::notificationPopupTimeOutChanged,[=](){ + setNotificationPresenter(this->webEngine->page()->profile()); + }); + settingsWidget->appLockSetChecked(settings.value("lockscreen",false).toBool()); //spell checker |