give the selection cards their own parts instead of label blobs
This commit is contained in:
19
src/ui/selection/EmptyNote.cpp
Normal file
19
src/ui/selection/EmptyNote.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "EmptyNote.h"
|
||||
|
||||
#include <QFont>
|
||||
#include <QPalette>
|
||||
|
||||
EmptyNote::EmptyNote(const QString& text, QWidget* parent)
|
||||
: QLabel(text, parent)
|
||||
{
|
||||
setWordWrap(true);
|
||||
|
||||
QFont noteFont = font();
|
||||
noteFont.setItalic(true);
|
||||
setFont(noteFont);
|
||||
|
||||
QPalette notePalette = palette();
|
||||
notePalette.setColor(QPalette::WindowText,
|
||||
palette().color(QPalette::Disabled, QPalette::WindowText));
|
||||
setPalette(notePalette);
|
||||
}
|
||||
Reference in New Issue
Block a user