comparison src/gui/dialog/about.cc @ 294:99cbc51433e4

*: cleanup uses of QPalette I didn't know about setBackgroundRole() which is very useful in 99% of the cases where I even needed to edit the palette
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 18:16:08 -0400
parents ac1451035c85
children 3b355fa948c7
comparison
equal deleted inserted replaced
293:703fb7d7c917 294:99cbc51433e4
111 "getting open file descriptors on macOS") + 111 "getting open file descriptors on macOS") +
112 "</li>" 112 "</li>"
113 " </ul>" 113 " </ul>"
114 "</body>"; 114 "</body>";
115 115
116 { 116 setBackgroundRole(QPalette::Base);
117 QPalette pal = QPalette();
118 pal.setColor(QPalette::Window, pal.color(QPalette::Base));
119 setPalette(pal);
120 }
121 117
122 { 118 {
123 QTextBrowser* paragraph = new QTextBrowser(this); 119 QTextBrowser* paragraph = new QTextBrowser(this);
124 paragraph->setOpenExternalLinks(true); 120 paragraph->setOpenExternalLinks(true);
125 paragraph->setFrameShape(QFrame::NoFrame); 121 paragraph->setFrameShape(QFrame::NoFrame);