From ef13aef7df63e109393152da70f6e3a533b990cf Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 5 Jul 2018 12:08:33 +0200 Subject: [PATCH] fixes for linux --- src/widgets/Notebook.cpp | 6 ++++-- src/widgets/Window.hpp | 2 +- src/widgets/dialogs/SettingsDialog.cpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widgets/Notebook.cpp b/src/widgets/Notebook.cpp index 4fbacc12..95bdeee3 100644 --- a/src/widgets/Notebook.cpp +++ b/src/widgets/Notebook.cpp @@ -416,8 +416,10 @@ SplitNotebook::SplitNotebook(Window *parent) bool customFrame = parent->hasCustomWindowFrame(); if (!customFrame) { - auto *settingsBtn = this->addCustomButton(); - auto *userBtn = this->addCustomButton(); + auto settingsBtn = this->addCustomButton(); + auto userBtn = this->addCustomButton(); + auto updateBtn = this->addCustomButton(); + updateBtn->setPixmap(QPixmap(":/images/download_update.png")); settingsBtn->setVisible(!app->settings->hidePreferencesButton.getValue()); userBtn->setVisible(!app->settings->hideUserButton.getValue()); diff --git a/src/widgets/Window.hpp b/src/widgets/Window.hpp index 60ce046c..4a2457d2 100644 --- a/src/widgets/Window.hpp +++ b/src/widgets/Window.hpp @@ -3,6 +3,7 @@ #include "util/Helpers.hpp" #include "widgets/BaseWindow.hpp" #include "widgets/Notebook.hpp" +#include "widgets/dialogs/UpdatePromptDialog.hpp" //#ifdef USEWINSDK //#include @@ -15,7 +16,6 @@ namespace chatterino { class Theme; -class UpdatePromptDialog; class Window : public BaseWindow { diff --git a/src/widgets/dialogs/SettingsDialog.cpp b/src/widgets/dialogs/SettingsDialog.cpp index c8da017f..0245667f 100644 --- a/src/widgets/dialogs/SettingsDialog.cpp +++ b/src/widgets/dialogs/SettingsDialog.cpp @@ -180,7 +180,7 @@ void SettingsDialog::themeRefreshEvent() BaseWindow::themeRefreshEvent(); QPalette palette; - palette.setColor(QPalette::Background, QColor("#f44")); + palette.setColor(QPalette::Background, QColor("#444")); this->setPalette(palette); }