From 51e8ff65dd4b777ccf90b722dc69d508cdd2497a Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 18 Nov 2021 00:18:10 +0100 Subject: Use svg images for download and location actions in viewer --- src/site.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/site.cc') diff --git a/src/site.cc b/src/site.cc index e1111de..f8d8116 100644 --- a/src/site.cc +++ b/src/site.cc @@ -394,12 +394,17 @@ private: auto* nav = body->add_tag("div")->attr("id", "header")->add_tag("ul"); { auto* li = nav->add_tag("li"); - li->add_tag("a", "D") + li->add_tag("a") ->attr("id", "download") ->attr("download", "") - ->attr("title", "Download [Shift-D]"); - li->add_tag("a", "P")->attr("id", "location") - ->attr("title", "Show location"); + ->attr("title", "Download [Shift-D]") + ->add_tag("img") + ->attr("src", "../img/download.svg"); + li->add_tag("a") + ->attr("id", "location") + ->attr("title", "Show location") + ->add_tag("img") + ->attr("src", "../img/location.svg"); } nav->add_tag("li")->add_tag("a", "<") ->attr("id", "previous") -- cgit v1.2.3-70-g09d2