mirror-chatterino2/mainwindow.cpp

28 lines
528 B
C++
Raw Normal View History

2017-01-01 02:30:42 +01:00
#include <QPalette>
2016-12-29 17:31:07 +01:00
#include "mainwindow.h"
#include "chatwidget.h"
2016-12-30 12:20:26 +01:00
#include "notebook.h"
2017-01-01 02:30:42 +01:00
#include "colorscheme.h"
2016-12-29 17:31:07 +01:00
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
2016-12-30 12:20:26 +01:00
notebook(this)
2016-12-29 17:31:07 +01:00
{
2016-12-30 12:20:26 +01:00
setCentralWidget(&this->notebook);
this->notebook.addPage();
this->notebook.addPage();
this->notebook.addPage();
2017-01-01 02:30:42 +01:00
QPalette palette;
2017-01-06 23:28:48 +01:00
palette.setColor(QPalette::Background, ColorScheme::instance().TabPanelBackground);
2017-01-01 02:30:42 +01:00
setPalette(palette);
resize(1280, 800);
2016-12-29 17:31:07 +01:00
}
MainWindow::~MainWindow()
{
2016-12-30 12:46:03 +01:00
2016-12-29 17:31:07 +01:00
}