comparison src/gui/widgets/text.cc @ 105:6d8da6e64d61

theme: add dark stylesheet, make it actually usable win32: make the titlebar black where available
author Paper <mrpapersonic@gmail.com>
date Sun, 05 Nov 2023 03:54:26 -0500
parents b315f3759c56
children 01d259b9c89f
comparison
equal deleted inserted replaced
104:27455104ea37 105:6d8da6e64d61
78 setFrame(false); 78 setFrame(false);
79 setReadOnly(true); 79 setReadOnly(true);
80 setCursor(Qt::IBeamCursor); 80 setCursor(Qt::IBeamCursor);
81 81
82 QPalette pal; 82 QPalette pal;
83 pal.setColor(QPalette::Window, Qt::transparent);
83 pal.setColor(QPalette::Base, Qt::transparent); 84 pal.setColor(QPalette::Base, Qt::transparent);
84 setPalette(pal); 85 setPalette(pal);
85 86
86 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); 87 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
87 } 88 }
99 QFont fnt(font()); 100 QFont fnt(font());
100 fnt.setPixelSize(16); 101 fnt.setPixelSize(16);
101 setFont(fnt); 102 setFont(fnt);
102 103
103 QPalette pal(palette()); 104 QPalette pal(palette());
104 pal.setColor(QPalette::Text, Qt::blue); 105 pal.setColor(QPalette::Text, pal.color(QPalette::Highlight));
105 setPalette(pal); 106 setPalette(pal);
106 } 107 }
107 108
108 Section::Section(const QString& title, const QString& data, QWidget* parent) : QWidget(parent) { 109 Section::Section(const QString& title, const QString& data, QWidget* parent) : QWidget(parent) {
109 QVBoxLayout* layout = new QVBoxLayout(this); 110 QVBoxLayout* layout = new QVBoxLayout(this);