diff --git a/pkg/arvo/app/btc-wallet.hoon b/pkg/arvo/app/btc-wallet.hoon index d2c061071..77bcfcecc 100644 --- a/pkg/arvo/app/btc-wallet.hoon +++ b/pkg/arvo/app/btc-wallet.hoon @@ -58,7 +58,7 @@ :- %launch-action !> :+ %add %btc-wallet - [[%custom `'/~btc' `'/~btc/img/tile.png'] %.y] + [[%custom `'/~btc' `'/~btc/img/tile.svg'] %.y] =/ warning [%settings-event !>([%put-entry %btc-wallet %warning %b %.y])] =/ currency [%settings-event !>([%put-entry %btc-wallet %currency %s 'USD'])] diff --git a/pkg/arvo/app/btc-wallet/img/tile.png b/pkg/arvo/app/btc-wallet/img/tile.png deleted file mode 100644 index 7f214414b..000000000 Binary files a/pkg/arvo/app/btc-wallet/img/tile.png and /dev/null differ diff --git a/pkg/arvo/app/btc-wallet/img/tile.svg b/pkg/arvo/app/btc-wallet/img/tile.svg new file mode 100644 index 000000000..da232b6f2 --- /dev/null +++ b/pkg/arvo/app/btc-wallet/img/tile.svg @@ -0,0 +1,4 @@ + + + + diff --git a/pkg/arvo/app/file-server.hoon b/pkg/arvo/app/file-server.hoon index 2e1ba7c9d..f2b910f44 100644 --- a/pkg/arvo/app/file-server.hoon +++ b/pkg/arvo/app/file-server.hoon @@ -225,6 +225,7 @@ [~ %js] (js-response:gen file) [~ %css] (css-response:gen file) [~ %png] (png-response:gen file) + [~ %svg] (svg-response:gen file) [~ %ico] (ico-response:gen file) :: [~ %html] diff --git a/pkg/arvo/lib/server.hoon b/pkg/arvo/lib/server.hoon index 52f218030..431b5db8a 100644 --- a/pkg/arvo/lib/server.hoon +++ b/pkg/arvo/lib/server.hoon @@ -106,6 +106,13 @@ ^- simple-payload:http :_ `octs [200 [['content-type' 'image/png'] ?:(cache [max-1-wk ~] ~)]] + :: + ++ svg-response + =| cache=? + |= =octs + ^- simple-payload:http + :_ `octs + [200 [['content-type' 'image/svg+xml'] ?:(cache [max-1-wk ~] ~)]] :: ++ ico-response |= =octs diff --git a/pkg/arvo/mar/svg.hoon b/pkg/arvo/mar/svg.hoon new file mode 100644 index 000000000..2911e4900 --- /dev/null +++ b/pkg/arvo/mar/svg.hoon @@ -0,0 +1,12 @@ +|_ dat=@ +++ grow + |% + ++ mime [/image/'svg+xml' (as-octs:mimes:html dat)] + -- +++ grab + |% + ++ mime |=([p=mite q=octs] q.q) + ++ noun @ + -- +++ grad %mime +--