layout->setSpacing(30);
aboutlayout->addLayout(layout);
- QString info = "<html><style>a { color: palette(text); }</style><body><h1>" + QString(Constants::APP_NAME) + "</h1>"
- "<p>" + tr("There's life outside the browser!") + "</p>"
- "<p>" + tr("Version %1").arg(Constants::VERSION) + "</p>"
- + QString("<p><a href=\"%1/\">%1</a></p>").arg(Constants::WEBSITE) +
-#if !defined(APP_MAC) && !defined(Q_WS_WIN)
- "<p>" + tr("%1 is Free Software but its development takes precious time.").arg(Constants::APP_NAME) + "<br/>"
- + tr("Please <a href='%1'>donate</a> to support the continued development of %2.")
- .arg(QString(Constants::WEBSITE).append("#donate"), Constants::APP_NAME) + "</p>"
-#endif
- "<p>" + tr("Report bugs and send in your ideas to %1")
- .arg(QString("<a href=\"mailto:%1\">%1</a>").arg(Constants::EMAIL)) + "</p>"
-
- "<p>"
- + tr("Icon designed by %1.").arg("Sebastian Kraft")
- + "<br>" + tr("Compact mode contributed by %1.").arg("Stefan Brück")
- + "<br>" + tr("HTTP proxy support contributed by %1.").arg("Kiwamu Okabe")
- + "</p>"
-
- "<p>" + 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)"
- ) + "</p>"
-#if !defined(APP_MAC) && !defined(Q_WS_WIN)
- "<p>" + tr("Released under the <a href='%1'>GNU General Public License</a>")
- .arg("http://www.gnu.org/licenses/gpl.html") + "</p>"
-#endif
- "<p>© 2009-2010 " + Constants::ORG_NAME + "</p>"
- "</body></html>";;
+ QString info = "<html><style>a { color: palette(text); text-decoration: none; font-weight: bold }</style><body><h1>" + QString(Constants::NAME) + "</h1>"
+ "<p>" + tr("There's life outside the browser!") + "</p>"
+ "<p>" + tr("Version %1").arg(Constants::VERSION) + "</p>"
+ + QString("<p><a href=\"%1/\">%1</a></p>").arg(Constants::WEBSITE) +
+
+ #if !defined(APP_MAC) && !defined(APP_WIN)
+ "<p>" + tr("%1 is Free Software but its development takes precious time.").arg(Constants::NAME) + "<br/>"
+ + tr("Please <a href='%1'>donate</a> to support the continued development of %2.")
+ .arg(QString(Constants::WEBSITE).append("#donate"), Constants::NAME) + "</p>"
+ #endif
+
+ "<p>" + tr("You may want to try my other apps as well:") + "</p>"
+ + "<ul>"
+
+ + "<li>" + tr("%1, a YouTube music player")
+ .arg("<a href='http://flavio.tordini.org/musictube'>Musictube</a>")
+ + "</li>"
+
+ + "<li>" + tr("%1, a music player")
+ .arg("<a href='http://flavio.tordini.org/musique'>Musique</a>")
+ + "</li>"
+
+ + "</ul>"
+
+ "<p>" + tr("Translate %1 to your native language using %2").arg(Constants::NAME)
+ .arg("<a href='http://www.transifex.net/projects/p/" + QString(Constants::UNIX_NAME) + "/resource/main/'>Transifex</a>")
+ + "</p>"
+
+ "<p>"
+ + tr("Icon designed by %1.").arg("<a href='http://www.kolorguild.com/'>David Nel</a>")
+ + "</p>"
+
+ #if !defined(APP_MAC) && !defined(APP_WIN)
+ "<p>" + tr("Released under the <a href='%1'>GNU General Public License</a>")
+ .arg("http://www.gnu.org/licenses/gpl.html") + "</p>"
+ #endif
+ "<p>© 2009-2011 " + Constants::ORG_NAME + "</p>"
+ "</body></html>";
QLabel *infoLabel = new QLabel(info, this);
infoLabel->setOpenExternalLinks(true);
infoLabel->setWordWrap(true);
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
+}