From: Flavio " + tr("There's life outside the browser!") + " " + tr("Version %1").arg(Constants::VERSION) + "" + QString(Constants::APP_NAME) + "
"
+ QString info = "" + QString(Constants::APP_NAME) + "
"
"
" + tr("HTTP proxy support contributed by %1.").arg("Kiwamu Okabe")
+ "
" + tr("Translated by %1").arg("Nikita Lyalin (ru_RU), " - "Márcio Moraes (pt_BR), " - // "Sergio Tocalini Joerg (es_AR), " - "Stefan Brück (de_DE), " - "Grzegorz Gibas (pl_PL), " - "Kiwamu Okabe (ja_JP), " - "Dan Vrátil (cs_CZ), " - // "Rafa (es_ES), " - "Yaron Shahrabani (he_IL), " - "Oleksandr Korneta (uk), " - "Inga Muste (lat), " - "Srecko Belaic & Zvonimir Äeri (hr_HR), " - "Miguel Anxo Bouzada (es, gl), " - "Guillaume Betous & Mathieu Dimanche (fr_FR), " - "Krisztián Horváth (hu_HU), " - "Ali E. Ä°mrek (tr_TR), " - "Jan W. Skjoldal & Halvor Lyche Strandvoll (nb_NO), " - "Ovidiu NiÅ£an (ro_RO), " - "Giorgos Skettos (el_GR), " - "Brian Keetman (nl_NL), " - "Sderawi (ar), " - "Daniel Rodrigues (pt_PT), " - "Jesse Jaara (fi_FI), " - "Tsvyatko Makazchiev (bg_BG), " - "Changtai Liang (zh_CN), " - "Veta Branislav (mkd_MKD)" - ) + "
" + "" + tr("Translated by the cool people at %1") + .arg("Transifex") + + "
" + #if !defined(APP_MAC) && !defined(APP_WIN) "" + tr("Released under the GNU General Public License") .arg("http://www.gnu.org/licenses/gpl.html") + "
" @@ -86,3 +63,16 @@ AboutView::AboutView(QWidget *parent) : QWidget(parent) { layout->addLayout(buttonLayout); } + +void AboutView::paintEvent(QPaintEvent * /*event*/) { +#if defined(APP_MAC) | defined(APP_WIN) + QBrush brush; + if (window()->isActiveWindow()) { + brush = QBrush(QColor(0xdd, 0xe4, 0xeb)); + } else { + brush = palette().window(); + } + QPainter painter(this); + painter.fillRect(0, 0, width(), height(), brush); +#endif +} diff --git a/src/AboutView.h b/src/AboutView.h index d411733..8170380 100644 --- a/src/AboutView.h +++ b/src/AboutView.h @@ -22,5 +22,8 @@ public: return metadata; } +protected: + void paintEvent(QPaintEvent *); + }; #endif