Skip to content

Commit

Permalink
Merge pull request #793 from ModOrganizer2/Develop
Browse files Browse the repository at this point in the history
Stage for release 2.2.1
  • Loading branch information
Silarn authored Jul 22, 2019
2 parents dcd6d62 + 613aa03 commit e69078e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/bbcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ class BBCodeMap {
m_TagMap["center"] = std::make_pair(QRegExp("\\[center\\](.*)\\[/center\\]"),
"<div align=\"center\">\\1</div>");
m_TagMap["quote"] = std::make_pair(QRegExp("\\[quote\\](.*)\\[/quote\\]"),
"<blockquote>\"\\1\"</blockquote>");
"<figure class=\"quote\"><blockquote>\\1</blockquote></figure>");
m_TagMap["quote="] = std::make_pair(QRegExp("\\[quote=([^\\]]*)\\](.*)\\[/quote\\]"),
"<blockquote>\"\\2\"<br/><span>--\\1</span></blockquote></p>");
"<figure class=\"quote\"><blockquote>\\2</blockquote></figure>");
m_TagMap["spoiler"] = std::make_pair(QRegExp("\\[spoiler\\](.*)\\[/spoiler\\]"),
"<details><summary>Spoiler: <div class=\"bbc_spoiler_show\">Show</div></summary><div class=\"spoiler_content\">\\1</div></details>");
m_TagMap["code"] = std::make_pair(QRegExp("\\[code\\](.*)\\[/code\\]"),
"<pre>\\1</pre>");
"<code>\\1</code>");
m_TagMap["heading"]= std::make_pair(QRegExp("\\[heading\\](.*)\\[/heading\\]"),
"<h2><strong>\\1</strong></h2>");
m_TagMap["line"] = std::make_pair(QRegExp("\\[line\\]"),
Expand Down Expand Up @@ -181,7 +183,7 @@ class BBCodeMap {
m_TagMap["email="] = std::make_pair(QRegExp("\\[email=\"?([^\\]]*)\"?\\](.*)\\[/email\\]"),
"<a href=\"mailto:\\1\">\\2</a>");
m_TagMap["youtube"] = std::make_pair(QRegExp("\\[youtube\\](.*)\\[/youtube\\]"),
"<a href=\"http://www.youtube.com/v/\\1\">http://www.youtube.com/v/\\1</a>");
"<a href=\"https://www.youtube.com/watch?v=\\1\">https://www.youtube.com/watch?v=\\1</a>");


// make all patterns non-greedy and case-insensitive
Expand Down
2 changes: 1 addition & 1 deletion src/logbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ QVariant LogBuffer::data(const QModelIndex &index, int role) const
switch (role) {
case Qt::DisplayRole: {
if (index.column() == 0) {
return m_Messages[msgIndex].time;
return m_Messages[msgIndex].time.toString("H: mm: ss");
} else if (index.column() == 1) {
const QString &msg = m_Messages[msgIndex].message;
if (msg.length() < 200) {
Expand Down
56 changes: 56 additions & 0 deletions src/modinfodialognexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,66 @@ void NexusTab::onModChanged()
max-width: 1060px;
margin-left: auto;
margin-right: auto;
padding-right: 7px;
padding-left: 7px;
padding-top: 20px;
padding-bottom: 20px;
}
img {
max-width: 100%;
}
figure.quote {
position: relative;
padding: 24px;
margin: 10px 20px 10px 10px;
color: #e1e1e1;
line-height: 1.5;
font-style: italic;
border-left: 6px solid #57a5cc;
border-left-color: rgb(87, 165, 204);
background: #383838 url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbi1xdW90ZSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOnJnYig2OSwgNjksIDcwKTtoZWlnaHQ6MjlweDtsZWZ0OjE1cHg7cG9zaXRpb246YWJzb2x1dGU7dG9wOjE1cHg7d2lkdGg6MzhweDsiPjxwYXRoIGNsYXNzPSJwYXRoMSIgZD0iTTAgMjAuNjc0YzAgNy4yMjUgNC42NjggMTEuMzM3IDkuODkyIDExLjMzNyA0LjgyNC0wLjA2MiA4LjcxOS0zLjk1NiA4Ljc4MS04Ljc3NSAwLTQuNzg1LTMuMzM0LTguMDA5LTcuNTU4LTguMDA5LTAuMDc4LTAuMDA0LTAuMTctMC4wMDYtMC4yNjItMC4wMDYtMC43MDMgMC0xLjM3NyAwLjEyNC0yLjAwMSAwLjM1MiAxLjA0MS00LjAxNCA1LjE1My04LjY4MyA4LjcxLTEwLjU3MmwtNi4xMTMtNS4wMDJjLTYuODkxIDQuODkxLTExLjQ0OCAxMi4zMzgtMTEuNDQ4IDIwLjY3NHpNMjIuNjc1IDIwLjY3NGMwIDcuMjI1IDQuNjY4IDExLjMzNyA5Ljg5MiAxMS4zMzcgNC44LTAuMDU2IDguNjctMy45NjEgOC42Ny04Ljc2OSAwLTAuMDA0IDAtMC4wMDggMC0wLjAxMiAwLTQuNzc5LTMuMjIzLTguMDAyLTcuNDQ3LTguMDAyLTAuMDk1LTAuMDA2LTAuMjA2LTAuMDA5LTAuMzE4LTAuMDA5LTAuNjg0IDAtMS4zMzkgMC4xMjYtMS45NDMgMC4zNTUgMC45MjctNC4wMTQgNS4xNS04LjY4MiA4LjcwNy0xMC41NzJsLTYuMTI0LTUuMDAyYy02Ljg5MSA0Ljg5MS0xMS40MzcgMTIuMzM4LTExLjQzNyAyMC42NzR6IiBzdHlsZT0iZmlsbDpyZ2IoNjksIDY5LCA3MCk7aGVpZ2h0OmF1dG87d2lkdGg6YXV0bzsiLz48L3N2Zz4=) no-repeat;
}
figure.quote blockquote {
position: relative;
margin: 0;
padding: 0;
}
div.spoiler_content {
background: #262626;
border: 1px dashed #3b3b3b;
padding: 5px;
margin: 5px;
}
div.bbc_spoiler_show{
border: 1px solid black;
background-color: #454545;
font-size: 11px;
padding: 3px;
color: #E6E6E6;
border-radius: 3px;
display: inline-block;
cursor: pointer;
}
details summary::-webkit-details-marker {
display:none;
}
summary:focus {
outline: 0;
}
a
{
/*should avoid overflow with long links forcing wordwrap regardless of spaces*/
overflow-wrap: break-word;
word-wrap: break-word;
color: #8197ec;
text-decoration: none;
}
Expand Down

0 comments on commit e69078e

Please sign in to comment.