diff --git a/saoristyle.css b/saoristyle.css index 50c0a13..4b830d8 100644 --- a/saoristyle.css +++ b/saoristyle.css @@ -79,3 +79,9 @@ div.accounts_display_name { font-size:large; } + +div.tools { + float:none; + text-align:center; + font-size:small; +} diff --git a/saoriview.cpp b/saoriview.cpp index e0c6fe8..c0f43d2 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -212,7 +212,19 @@ media += mediaParser(j.toObject(),sensitive); } result += htmlDiv("media",media); + + result += htmlDiv("tools", + htmlAnc("reply:" + json["id"].toString(), + htmlImg("icon",":/icons/ionicons/reply.svg")) + " " + + htmlAnc("boost:" + json["id"].toString(), + htmlImg("icon",":/icons/ionicons/share.svg")) + + QString::number(json["reblogs_count"].toInt()) + + htmlAnc("fav:" + json["id"].toString(), + htmlImg("icon",":/icons/ionicons/star.svg")) + + QString::number(json["favourites_count"].toInt()) + ); } + return result; } diff --git a/saoriviewentry.cpp b/saoriviewentry.cpp index b953e74..3f5aeda 100644 --- a/saoriviewentry.cpp +++ b/saoriviewentry.cpp @@ -116,7 +116,7 @@ void SaoriViewEntry::imageResizer(const QString type, QImage &image) { QStringList c; - c << "avatar" << "mavatar" << "media" << "nsfwmedia"; + c << "avatar" << "mavatar" << "media" << "nsfwmedia" << "icon"; switch (c.indexOf(type)) { case 0: image = roundedImage(image,10).scaled(64,64,Qt::KeepAspectRatio,Qt::SmoothTransformation); @@ -133,6 +133,9 @@ image = image.scaledToWidth(200,Qt::SmoothTransformation); image = roundedImage(image,20); break; + case 4: + image = image.scaled(24,24,Qt::KeepAspectRatio,Qt::SmoothTransformation); + break; default: break; }