fixes for linux

This commit is contained in:
fourtf 2018-07-05 12:08:33 +02:00
parent f2238729f1
commit ef13aef7df
3 changed files with 6 additions and 4 deletions

View file

@ -416,8 +416,10 @@ SplitNotebook::SplitNotebook(Window *parent)
bool customFrame = parent->hasCustomWindowFrame(); bool customFrame = parent->hasCustomWindowFrame();
if (!customFrame) { if (!customFrame) {
auto *settingsBtn = this->addCustomButton(); auto settingsBtn = this->addCustomButton();
auto *userBtn = this->addCustomButton(); auto userBtn = this->addCustomButton();
auto updateBtn = this->addCustomButton();
updateBtn->setPixmap(QPixmap(":/images/download_update.png"));
settingsBtn->setVisible(!app->settings->hidePreferencesButton.getValue()); settingsBtn->setVisible(!app->settings->hidePreferencesButton.getValue());
userBtn->setVisible(!app->settings->hideUserButton.getValue()); userBtn->setVisible(!app->settings->hideUserButton.getValue());

View file

@ -3,6 +3,7 @@
#include "util/Helpers.hpp" #include "util/Helpers.hpp"
#include "widgets/BaseWindow.hpp" #include "widgets/BaseWindow.hpp"
#include "widgets/Notebook.hpp" #include "widgets/Notebook.hpp"
#include "widgets/dialogs/UpdatePromptDialog.hpp"
//#ifdef USEWINSDK //#ifdef USEWINSDK
//#include <platform/borderless/qwinwidget.h> //#include <platform/borderless/qwinwidget.h>
@ -15,7 +16,6 @@
namespace chatterino { namespace chatterino {
class Theme; class Theme;
class UpdatePromptDialog;
class Window : public BaseWindow class Window : public BaseWindow
{ {

View file

@ -180,7 +180,7 @@ void SettingsDialog::themeRefreshEvent()
BaseWindow::themeRefreshEvent(); BaseWindow::themeRefreshEvent();
QPalette palette; QPalette palette;
palette.setColor(QPalette::Background, QColor("#f44")); palette.setColor(QPalette::Background, QColor("#444"));
this->setPalette(palette); this->setPalette(palette);
} }