From 7b767368dfdd856b44bb13661fe03604a7e1b7a8 Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Mon, 26 Aug 2024 15:51:35 -0500 Subject: [PATCH] Change icons to mask-image Removes icons as components, uses mask-image instead. Sets a size on the .fac icons to 1em so by default they are 1em and retain their aspect ratio. rename the icon files for consistency. --- .../homebrew/brewRenderer/toolBar/toolBar.jsx | 7 ++- .../brewRenderer/toolBar/toolBar.less | 5 ++ client/icons/customIcons.less | 50 ++++++++++++------- client/icons/fit-width.svg | 15 ++++++ client/icons/icon-components/zoomIcons.jsx | 46 ----------------- client/icons/zoom-to-fit.svg | 12 +++++ 6 files changed, 66 insertions(+), 69 deletions(-) create mode 100644 client/icons/fit-width.svg delete mode 100644 client/icons/icon-components/zoomIcons.jsx create mode 100644 client/icons/zoom-to-fit.svg diff --git a/client/homebrew/brewRenderer/toolBar/toolBar.jsx b/client/homebrew/brewRenderer/toolBar/toolBar.jsx index ad9b99f1f..7a111fbb8 100644 --- a/client/homebrew/brewRenderer/toolBar/toolBar.jsx +++ b/client/homebrew/brewRenderer/toolBar/toolBar.jsx @@ -3,7 +3,6 @@ const React = require('react'); const { useState, useEffect } = React; const _ = require('lodash'); -import * as ZoomIcons from '../../../icons/icon-components/zoomIcons.jsx'; const MAX_ZOOM = 300; const MIN_ZOOM = 10; @@ -87,18 +86,18 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages })=>{ {/*v=====----------------------< Zoom Controls >---------------------=====v*/}