mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: editor: use selected font family
This commit is contained in:
1 parent
9e19eb2614
commit
48d79496d4
3 files changed
+3
-1
No files matched your search
@@ -97,6 +97,7 @@ export default class Editor extends DOMAttachedObject {
|
|||||||
hideCursorInOverviewRuler: true,
|
hideCursorInOverviewRuler: true,
|
||||||
overviewRulerLanes: 0,
|
overviewRulerLanes: 0,
|
||||||
overviewRulerBorder: false,
|
overviewRulerBorder: false,
|
||||||
|
fontFamily: UserContext.codeFontFamily,
|
||||||
};
|
};
|
||||||
if (autoLayout) cfg.automaticLayout = true;
|
if (autoLayout) cfg.automaticLayout = true;
|
||||||
let prevHeight = 0;
|
let prevHeight = 0;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class MonacoEditor e
|
|||||||
const config = {
|
const config = {
|
||||||
theme: 'vs-light',
|
theme: 'vs-light',
|
||||||
...customOptions,
|
...customOptions,
|
||||||
|
fontFamily: UserContext.codeFontFamily,
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
glyphMargin: true,
|
glyphMargin: true,
|
||||||
lightbulb: { enabled: true },
|
lightbulb: { enabled: true },
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.39.17",
|
"version": "4.39.18",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user