Skip to content

Commit

Permalink
Merge pull request #174 from Murmele/MatrixBadge
Browse files Browse the repository at this point in the history
Matrix badge
  • Loading branch information
Murmele authored May 28, 2022
2 parents 14b10db + 3f3079c commit 96c2fb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Gittyup Status](https://github.com/Murmele/Gittyup/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Murmele/Gittyup/actions/workflows/build.yml)
[![Matrix](https://img.shields.io/matrix/Gittyup:matrix.org?label=Matrix%20Chat)](https://matrix.to/#/#Gittyup:matrix.org)
[![Donate Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/Gittyup/donate)

Gittyup
Expand Down
8 changes: 5 additions & 3 deletions src/dialogs/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const QString kIssueTracker =
const QString kUrl =
"https://stackoverflow.com/questions/tagged/gittyup?sort=frequent";

const QString kUrlMatrix = "https://matrix.to/#/#Gittyup:matrix.org";

const QString kSubtitleFmt = "<h4 style='margin-top: 0px; color: gray'>%2</h4>";

const QString kTextFmt =
Expand All @@ -45,7 +47,7 @@ const QString kTextFmt =
"contributors</p><p> If you have a question that might benefit the "
"community, consider asking it on <a href='%5'>Stack Overflow</a> by "
"including 'gittyup' in the tags. Otherwise, contact us at "
"<a href='mailto:%6'>%6</a>";
"<a href='%6'>%6</a> or ask in the matrix channel: <a href='%7'>%7</a>";

const QString kStyleSheet = "h3 {"
" text-decoration: underline"
Expand Down Expand Up @@ -86,8 +88,8 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) {
QDateTime dateTime = QDateTime::fromString(GITTYUP_BUILD_DATE, Qt::ISODate);
QString date =
dateTime.date().toString(QLocale().dateFormat(QLocale::LongFormat));
QString text =
kTextFmt.arg(name, version, date, revision, kUrl, kIssueTracker);
QString text = kTextFmt.arg(name, version, date, revision, kUrl,
kIssueTracker, kUrlMatrix);
QLabel *label = new QLabel(text, this);
label->setWordWrap(true);
label->setTextInteractionFlags(kTextFlags);
Expand Down

0 comments on commit 96c2fb5

Please sign in to comment.