diff --git a/resources/docs/Documentation.md b/resources/docs/Documentation.md index 569c6403d..885d03b1d 100644 --- a/resources/docs/Documentation.md +++ b/resources/docs/Documentation.md @@ -453,6 +453,8 @@ You can select style and skin in settings category `User interface`. RSS Guard encapsulates styling capabilities via *skins* feature. Each skin is placed in its own folder and must contain several [files](https://github.com/martinrotter/rssguard/tree/master/resources/skins/vergilius). There are some [built-in](https://github.com/martinrotter/rssguard/tree/master/resources/skins) skins, but you can place your custom skins in your [user data folder](#userd). You can find exact path to your user data folder in `About` dialog. Note that there must be subfolder `skins`. Create it if it does not exist and place your custom skins inside. +Also, there is "empty" [skin](https://github.com/martinrotter/rssguard/tree/master/resources/skins/plain) which can be used as a base for your custom skins. Look into its main [layout file](https://github.com/martinrotter/rssguard/tree/master/resources/skins/plain/html_wrapper.html) for some commentary. + So for example if your new skin is called `greenland`, you must place it in folder diff --git a/resources/skins/dark/html_wrapper.html b/resources/skins/dark/html_wrapper.html index 6b863afb7..d4cd1decd 100644 --- a/resources/skins/dark/html_wrapper.html +++ b/resources/skins/dark/html_wrapper.html @@ -1,6 +1,4 @@ - - @@ -7219,41 +7217,11 @@ a.list-group-item-danger.active:focus { } - %1 - - - - %2 diff --git a/resources/skins/plain/html_adblocked.html b/resources/skins/plain/html_adblocked.html new file mode 100755 index 000000000..ab3b1b4d5 --- /dev/null +++ b/resources/skins/plain/html_adblocked.html @@ -0,0 +1,4 @@ +
+

%1

+
%2
+
\ No newline at end of file diff --git a/resources/skins/plain/html_enclosure_every.html b/resources/skins/plain/html_enclosure_every.html new file mode 100755 index 000000000..b4ecb8e0d --- /dev/null +++ b/resources/skins/plain/html_enclosure_every.html @@ -0,0 +1 @@ +%2%3 \ No newline at end of file diff --git a/resources/skins/plain/html_enclosure_image.html b/resources/skins/plain/html_enclosure_image.html new file mode 100755 index 000000000..fd617f8ac --- /dev/null +++ b/resources/skins/plain/html_enclosure_image.html @@ -0,0 +1 @@ +%2 \ No newline at end of file diff --git a/resources/skins/plain/html_single_message.html b/resources/skins/plain/html_single_message.html new file mode 100755 index 000000000..2dc165bd5 --- /dev/null +++ b/resources/skins/plain/html_single_message.html @@ -0,0 +1,8 @@ +
+
%1 🔗URL %6
+
+
%2, %5
+
%7
+ %4 +
+
diff --git a/resources/skins/plain/html_wrapper.html b/resources/skins/plain/html_wrapper.html new file mode 100755 index 000000000..2f3005464 --- /dev/null +++ b/resources/skins/plain/html_wrapper.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + + %1 + + + %2 + + diff --git a/resources/skins/plain/metadata.xml b/resources/skins/plain/metadata.xml new file mode 100755 index 000000000..2f74d5d93 --- /dev/null +++ b/resources/skins/plain/metadata.xml @@ -0,0 +1,18 @@ + + + + Martin Rotter + rotter.martinos@gmail.com + + + + #00BFFF + #FF0000 + #32CD32 + + \ No newline at end of file diff --git a/resources/skins/plain/theme.css b/resources/skins/plain/theme.css new file mode 100755 index 000000000..afc662729 --- /dev/null +++ b/resources/skins/plain/theme.css @@ -0,0 +1,13 @@ +/* Qt stylesheet. */ + +QTextEdit { + selection-background-color: #4861f0; +} + +QStatusBar::item { + border: none; +} + +QSplitter::handle { + background: rgba(117, 117, 117, 0.5); +} \ No newline at end of file diff --git a/resources/skins/vergilius/html_wrapper.html b/resources/skins/vergilius/html_wrapper.html index 5eef59f7e..f3b49cbaa 100644 --- a/resources/skins/vergilius/html_wrapper.html +++ b/resources/skins/vergilius/html_wrapper.html @@ -2,50 +2,47 @@ + - + - - - + - - - - %1 + + %1 %2 diff --git a/src/librssguard/gui/webviewer.cpp b/src/librssguard/gui/webviewer.cpp index a07068c6b..a70ea462d 100644 --- a/src/librssguard/gui/webviewer.cpp +++ b/src/librssguard/gui/webviewer.cpp @@ -118,7 +118,8 @@ void WebViewer::loadMessages(const QList& messages, RootItem* root) { enc_url = QUrl::fromPercentEncoding(enc_url.toUtf8()); enclosures += skin.m_enclosureMarkup.arg(enc_url, - QSL("🧷"), enclosure.m_mimeType); + QSL("🧷"), + enclosure.m_mimeType); if (enclosure.m_mimeType.startsWith(QSL("image/")) && qApp->settings()->value(GROUP(Messages), SETTING(Messages::DisplayEnclosuresInMessage)).toBool()) {