mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixes for linux
This commit is contained in:
parent
f2238729f1
commit
ef13aef7df
|
@ -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());
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue