From 580265b5cfb8e043915eaffb415a2f866047868a Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 9 Jul 2025 11:47:40 +0300 Subject: [PATCH] add icon library to drive --- www/common/drive-ui.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index b853944eb..4be6e691b 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -26,6 +26,7 @@ define([ '/customize/pages.js', '/common/pad-types.js', '/common/onlyoffice/broken-formats.js', + '/customize/fonts/lucide.js' ], function ( $, ApiConfig, @@ -47,7 +48,8 @@ define([ Messages, Pages, PadTypes, - BrokenFormats) + BrokenFormats, + Lucide) { var APP = window.APP = { @@ -735,6 +737,7 @@ define([ }, ready: function (state) { appStatus.isReady = state; + Lucide.createIcons(); if (state) { appStatus._onReady.forEach(function (h) { h(); @@ -3165,7 +3168,7 @@ define([ var dropdownConfig = { buttonContent: [ - h('i.fa.fa-plus'), + h('i', {'data-lucide':'plus', 'aria-hidden':'true'}), h('span.cp-button-name', Messages.fm_newButton), ], buttonCls: 'cp-toolbar-dropdown-nowrap', @@ -3250,7 +3253,7 @@ define([ } var dropdownConfig = { buttonContent: [ - h('i.fa.fa-filter'), + h('i', {'data-lucide': 'filter', 'aria-hidden':'true'}), h('span.cp-button-name', Messages.fm_filterBy), ], buttonCls: 'cp-toolbar-dropdown-nowrap',