mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
improve text size settings
This commit is contained in:
@@ -146,3 +146,15 @@ export function setAppFontSize(type) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function getFontSizePreviewClassName(type) {
|
||||
for (let i = 0; i < fontConstants.allFontSizeArray.length; i++) {
|
||||
const fontSizeType = fontConstants.allFontSizeArray[i];
|
||||
|
||||
if (fontSizeType.type === type) {
|
||||
return fontConstants.fontSizePreviewClassNamePrefix + fontSizeType.className;
|
||||
}
|
||||
}
|
||||
|
||||
return fontConstants.fontSizePreviewClassNamePrefix + fontConstants.defaultFontSize.className;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user