#include "aboutwindow.h"#include "ui_aboutwindow.h"#include <QDebug>/*** Initializes the window components and configures the AboutWindow*/AboutWindow::AboutWindow(QWidget *parent) :QWidget(parent),m_ui(new Ui::AboutWindow){m_ui->setupUi(this);this->setWindowFlags(Qt::Window);setWindowTitle(tr("About") + " " + qApp->applicationName());m_ui->aboutText->setText("<p>Notes was founded by <a href='https://rubymamistvalove.com'>Ruby Mamistvalove</a>, to create an elegant yet powerful cross-platform and open-source note-taking app.</p><a href='https://github.com/nuttyartist/notes'>Source code on Github</a>.<br/><br/><strong>Acknowledgments</strong><br/>This project couldn't have come this far without the help of these amazing people:<br/><br/><strong>Programmers:</strong><br/>Ali Diouri<br/>Thorbjørn Lindeijer<br/>Waqar Ahmed<br/>Alex Spataru<br/>David Planella<br/><br/><strong>Designers:</strong><br/>Kevin Doyle<br/><br/>And to the many of our beloved users who keep sending us feedback, you are an essential force in helping us improve, thank you!<br/><br/><strong>Notes makes use of the following third-party libraries:</strong><br/><br/>QMarkdownTextEdit<br/>QSimpleUpdater<br/>QAutostart<br/>QXT<br/><br/><strong>Notes makes use of the following open source fonts:</strong><br/><br/>Roboto<br/>Source Sans Pro<br/>Jost<br/>Josefin Sans<br/>Trykker<br/>Mate<br/>iA Writer Mono<br/>iA Writer Duo<br/>iA Writer Quattro<br/>");m_ui->aboutText->setTextColor(QColor(26, 26, 26));#ifdef __APPLE__QFont fontToUse = QFont(QStringLiteral("SF Pro Text")).exactMatch() ? QStringLiteral("SF Pro Text") : QStringLiteral("Roboto");m_ui->aboutText->setFont(fontToUse);#elif _WIN32QFont fontToUse = QFont(QStringLiteral("Segoe UI")).exactMatch() ? QStringLiteral("Segoe UI") : QStringLiteral("Roboto");m_ui->aboutText->setFont(fontToUse);#elsem_ui->aboutText->setFont(QFont(QStringLiteral("Roboto")));#endif}AboutWindow::~AboutWindow(){/* Delete UI controls */delete m_ui;}void AboutWindow::setTheme(QColor backgroundColor, QColor textColor){QString ss = "QTextBrowser { ""background-color: %1;""color: %2;""}";ss = ss.arg(backgroundColor.name(), textColor.name());m_ui->aboutText->setStyleSheet(ss);}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。