فهرست منبع

HUE-7314 [home] Use svg icons for new document and folder in home

Johan Ahlen 8 سال پیش
والد
کامیت
c013587a9d

+ 2 - 2
desktop/core/src/desktop/templates/document_browser.mako

@@ -306,7 +306,7 @@ from desktop.views import _ko
                 <!-- ko if: app === 'documents' -->
                 <div class="inline">
                   <span class="dropdown">
-                    <a class="btn" title="${_('New document')}" data-toggle="dropdown" data-bind="tooltip: { placement: 'bottom', delay: 750 }, css: { 'disabled': isTrash() || isTrashed() || ! canModify() }" href="javascript:void(0);" style="height: 20px"><span class="fa-stack fa-fw" style="width: 1.28571429em"><i class="fa fa-file-o fa-stack-1x" style="margin-top: -6px"></i><i class="fa fa-plus-circle fa-stack-1x" style="font-size: 12px; margin-left: 6px;"></i></span></a>
+                    <a class="btn" title="${_('New document')}" data-toggle="dropdown" data-bind="tooltip: { placement: 'bottom', delay: 750 }, css: { 'disabled': isTrash() || isTrashed() || ! canModify() }" href="javascript:void(0);" style="height: 20px"><svg class="hi"><use xlink:href="#hi-file"></use><use xlink:href="#hi-plus-addon"></use></svg></a>
                     <ul class="dropdown-menu less-padding document-types" style="margin-top:10px; width: 175px;" role="menu">
                       % if 'beeswax' in apps:
                         <li>
@@ -380,7 +380,7 @@ from desktop.views import _ko
                 </div>
                 <!-- /ko -->
 
-                <a class="btn" title="${_('New folder')}" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, click: function () { showNewDirectoryModal() }, css: { 'disabled': isTrash() || isTrashed() || ! canModify() }" style="height: 20px"><span class="fa-stack fa-fw" style="width: 1.28571429em;"><i class="fa fa-folder-o fa-stack-1x" style="margin-top: -6px"></i><i class="fa fa-plus-circle fa-stack-1x" style="font-size: 12px; margin-left: 7px;"></i></span></a>
+                <a class="btn" title="${_('New folder')}" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, click: function () { showNewDirectoryModal() }, css: { 'disabled': isTrash() || isTrashed() || ! canModify() }" style="height: 20px"><svg class="hi"><use xlink:href="#hi-folder"></use><use xlink:href="#hi-plus-addon"></use></svg></a>
                 <a class="btn" title="${_('Rename folder')}" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, click: function () { showRenameDirectoryModal() }, css: { 'disabled': isTrash() || isTrashed() || selectedEntry() === null || ! canModify() || (selectedEntry() != null && (!selectedEntry().isDirectory() || !selectedEntry().canModify())) }"><i class="fa fa-fw fa-edit"></i></a>
                 <!-- ko if: isTrash() -->
                   <a class="btn" href="javascript:void(0);" data-bind="tooltip: { placement: 'bottom', delay: 750 }, click: function() { showRestoreConfirmation(); }, css: { 'disabled': selectedEntries().length === 0 }, attr: { 'title' : '${ _('Restore to Home ') }' }"><i class="fa fa-fw fa-undo"></i></a>

+ 4 - 4
desktop/core/src/desktop/templates/hue_icons.mako

@@ -198,10 +198,10 @@
     </symbol>
 
     <symbol id="hi-plus-addon" viewBox="0 0 640 640">
-      <circle style="fill:#FFF" cx="526.5" cy="526.5" r="132.5"></circle>
-      <circle cx="526.5" cy="526.5" r="113.5"></circle>
-      <rect style="fill:#FFF" x="510.5" y="449.97" width="32" height="153.07"></rect>
-      <rect style="fill:#FFF" x="510.5" y="449.97" width="32" height="153.07" transform="translate(1053) rotate(90)"></rect>
+      <circle style="fill:#FFF" cx="483.82" cy="484.82" r="170.68"></circle>
+      <circle cx="483.82" cy="484.82" r="155.31"></circle>
+      <rect style="fill:#FFF" x="456.92" y="374.09" width="43.79" height="209.46"></rect>
+      <rect style="fill:#FFF" x="461.92" y="380.09" width="43.79" height="209.46" transform="translate(968.64 1) rotate(90)"></rect>
     </symbol>
 
     <symbol id="hi-py" viewBox="0 0 640 640">