Add basic color scheme handling

Fix #59
This commit is contained in:
Rasmus Karlsson
2017-07-02 14:28:37 +02:00
parent c5c2718dc0
commit ddf886eaf1
13 changed files with 83 additions and 39 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
#include "widgets/notebookpagedroppreview.hpp"
#include "colorscheme.hpp"
#include <QDebug>
#include <QPainter>
@@ -18,7 +19,8 @@ void NotebookPageDropPreview::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.fillRect(8, 8, width() - 17, height() - 17, this->colorScheme.DropPreviewBackground);
painter.fillRect(8, 8, this->width() - 17, this->height() - 17,
this->colorScheme.DropPreviewBackground);
}
void NotebookPageDropPreview::hideEvent(QHideEvent *)