From 972b27a386431d79f2ba7f8de76117779450304e Mon Sep 17 00:00:00 2001 From: btpf Date: Fri, 25 Aug 2023 22:16:01 -0400 Subject: [PATCH] UX: Hide Font Toggler I have decided to hide the toggle button for fonts in the fontmanager. This was done to help with confusion users experienced with the menu. This feature will stay implemented in case in the future I choose to install system fonts. --- src/routes/Settings/pages/Fonts/FontManager/FontManager.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/Settings/pages/Fonts/FontManager/FontManager.tsx b/src/routes/Settings/pages/Fonts/FontManager/FontManager.tsx index a5331de..e188c2c 100644 --- a/src/routes/Settings/pages/Fonts/FontManager/FontManager.tsx +++ b/src/routes/Settings/pages/Fonts/FontManager/FontManager.tsx @@ -59,7 +59,6 @@ const FontManager = (props:any)=>{ // // this means if the name has an extension like .ttf // if(item.includes(".")){ const fontName = item.split(".")[0].replaceAll(" ", "_") - console.log("LOADING", fontName, "With path", newPath) const font = new FontFace(fontName, `url(${convertFileSrc(newPath)})`); // // wait for font to be loaded font.load().then(()=>{ @@ -103,7 +102,6 @@ const FontManager = (props:any)=>{ step={null} onChange={(e)=>{ if(typeof e === "number"){ - // dispatch(SetProgress({view: 0, progress: e/1000})) setSelectedWeight(e) } @@ -140,7 +138,7 @@ const FontManager = (props:any)=>{ console.log("Font deleted") }) }} className={styles.trash}/> - {/*Removes error from console */}} onClick={()=>{ + {/*Removes error from console */}} onClick={()=>{ const newObj = {} as {[key: string]: boolean} newObj[mappedFontName] = !fontList[mappedFontName] const newList = {...fontList, ...newObj}