From c831221cc476e42e316a16daeec6faef7bc6925d Mon Sep 17 00:00:00 2001 From: azivner Date: Wed, 7 Mar 2018 20:52:34 -0500 Subject: [PATCH] add "play" icon for "render" note types --- src/public/images/icons/play.png | Bin 0 -> 252 bytes src/public/javascripts/note_tree.js | 3 +++ src/public/stylesheets/style.css | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 src/public/images/icons/play.png diff --git a/src/public/images/icons/play.png b/src/public/images/icons/play.png new file mode 100644 index 0000000000000000000000000000000000000000..e74c06a22e09ca3a503072a16cfa813ac932345e GIT binary patch literal 252 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_Gz7y~NYkmHiPj2cvAjb<`Ir)US}z_})(C5m za%wudQAEhhV47}^`@t%K3XyrP3JM%7GyIzV%0FCX=DTm%_UT<&1xIwmHymUy-y-pZ z>08C)o>V@DupJLt`6h=j^lUuL9KI%)aj%%g(MWcmV8%li%y{-C-s5jGEe`nGq9ojX pFG6O?5{>@4SLt7F-}onA%lPJ@mP}iBo;=V|44$rjF6*2UngGnoR*V1u literal 0 HcmV?d00001 diff --git a/src/public/javascripts/note_tree.js b/src/public/javascripts/note_tree.js index e43a9eb7f..3fc3a14e9 100644 --- a/src/public/javascripts/note_tree.js +++ b/src/public/javascripts/note_tree.js @@ -157,6 +157,9 @@ const noteTree = (function() { if (note.type === 'code') { extraClasses.push("code"); } + else if (note.type === 'render') { + extraClasses.push('render'); + } else if (note.type === 'file') { extraClasses.push('attachment'); } diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index f71e5c14b..47a2fa700 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -77,6 +77,11 @@ span.fancytree-node.attachment > span.fancytree-icon { background-image: url("../images/icons/paperclip.png"); } +span.fancytree-node.render > span.fancytree-icon { + background-position: 0 0; + background-image: url("../images/icons/play.png"); +} + span.fancytree-node.protected > span.fancytree-icon { filter: drop-shadow(2px 2px 2px black); }