summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-08 11:16:50 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-15 09:53:42 +0200
commita8224cfb6df7d0a1f60c3ca603171a152179e71d (patch)
tree462675ffaef580dc25bbcaea70221dd7d3573b73
parentAdd font: Nunito regular (diff)
downloadrekonq-a8224cfb6df7d0a1f60c3ca603171a152179e71d.tar.xz
about:downloads grey links
-rw-r--r--src/data/home.html4
-rw-r--r--src/newtabpage.cpp3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/data/home.html b/src/data/home.html
index c46904dd..c7480810 100644
--- a/src/data/home.html
+++ b/src/data/home.html
@@ -199,6 +199,10 @@ float: left;
margin-right: 5px;
}
+.download a.greylink{
+color:grey;
+}
+
/* -------------------------------------------------------- */
/* Empty pages : in the end : need to overwrite */
#content.empty {
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index aadaf930..87d2ca5a 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -511,11 +511,14 @@ void NewTabPage::downloadsPage()
if (QFile::exists(file))
{
div.appendInside(markup(QL1S("a")));
+ div.lastChild().setAttribute(QL1S("class"), QL1S("greylink"));
div.lastChild().setAttribute(QL1S("href"), QL1S("file://") + dir);
div.lastChild().setPlainText(i18n("Open directory"));
div.appendInside(QL1S(" - "));
+
div.appendInside(markup(QL1S("a")));
+ div.lastChild().setAttribute(QL1S("class"), QL1S("greylink"));
div.lastChild().setAttribute(QL1S("href"), QL1S("file://") + file);
div.lastChild().setPlainText(i18n("Open file"));
}