refactor(desktop): organize lib modules by domain
This commit is contained in:
1 parent
90f0594e93
commit
7e7c4944e9
700 files changed
+1292
-1264
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { EDITOR_FONT_FAMILY_CSS_VAR, EDITOR_FONT_SIZE_CSS_VAR } from "@/lib/editor/editorThemes";
|
||||
import type { EditorSettings } from "@/stores/settingsStore";
|
||||
|
||||
export type DocumentViewerFontSettings = Pick<EditorSettings, "fontFamily" | "fontSize">;
|
||||
|
||||
export function documentViewerFontStyle(settings: DocumentViewerFontSettings): Record<string, string> {
|
||||
return {
|
||||
[EDITOR_FONT_FAMILY_CSS_VAR]: settings.fontFamily,
|
||||
[EDITOR_FONT_SIZE_CSS_VAR]: `${settings.fontSize}px`,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user