Skip to content

Commit 4dfbaaa

Browse files
committed
style: More Inter replacing Arial
1 parent 16a703d commit 4dfbaaa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/lib/litegraph/src/LiteGraphGlobal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ export class LiteGraphGlobal {
5959
NODE_DEFAULT_SHAPE = RenderShape.ROUND
6060
NODE_BOX_OUTLINE_COLOR = '#FFF'
6161
NODE_ERROR_COLOUR = '#E00'
62-
NODE_FONT = 'Arial'
62+
NODE_FONT = 'Inter'
6363
NODE_DEFAULT_BYPASS_COLOR = '#FF00FF'
6464
NODE_OPACITY = 0.9
6565

66-
DEFAULT_FONT = 'Arial'
66+
DEFAULT_FONT = 'Inter'
6767
DEFAULT_SHADOW_COLOR = 'rgba(0,0,0,0.5)'
6868

6969
DEFAULT_GROUP_FONT = 24
7070
DEFAULT_GROUP_FONT_SIZE?: any
71-
GROUP_FONT = 'Arial'
71+
GROUP_FONT = 'Inter'
7272

7373
WIDGET_BGCOLOR = '#222'
7474
WIDGET_OUTLINE_COLOR = '#666'

src/lib/litegraph/src/canvas/InputIndicators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class InputIndicators implements Disposable {
2323
colour1 = '#ff5f00'
2424
colour2 = '#00ff7c'
2525
colour3 = '#dea7ff'
26-
fontString = 'bold 12px Arial'
26+
fontString = 'bold 12px Inter'
2727
// #endregion
2828

2929
// #region state

src/lib/litegraph/src/subgraph/SubgraphIONodeBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export abstract class SubgraphIONodeBase<
353353
editorAlpha?: number
354354
): void {
355355
ctx.fillStyle = '#AAA'
356-
ctx.font = '12px Arial'
356+
ctx.font = '12px Inter'
357357
ctx.textBaseline = 'middle'
358358

359359
for (const slot of this.allSlots) {

src/renderer/extensions/vueNodes/widgets/composables/useImagePreviewWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const renderPreview = (
212212
ctx.roundRect(x, y, sz, sz, [4])
213213
ctx.fill()
214214
ctx.fillStyle = textFill
215-
ctx.font = '12px Arial'
215+
ctx.font = '12px Inter'
216216
ctx.textAlign = 'center'
217217
ctx.fillText(text, x + 15, y + 20)
218218

tests-ui/tests/litegraph/core/__snapshots__/litegraph.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LiteGraphGlobal {
2020
},
2121
"ContextMenu": [Function],
2222
"CurveEditor": [Function],
23-
"DEFAULT_FONT": "Arial",
23+
"DEFAULT_FONT": "Inter",
2424
"DEFAULT_GROUP_FONT": 24,
2525
"DEFAULT_GROUP_FONT_SIZE": undefined,
2626
"DEFAULT_POSITION": [
@@ -33,7 +33,7 @@ LiteGraphGlobal {
3333
"EVENT": -1,
3434
"EVENT_LINK_COLOR": "#A86",
3535
"GRID_SHAPE": 6,
36-
"GROUP_FONT": "Arial",
36+
"GROUP_FONT": "Inter",
3737
"Globals": {},
3838
"HIDDEN_LINK": -1,
3939
"INPUT": 1,
@@ -65,7 +65,7 @@ LiteGraphGlobal {
6565
"NODE_DEFAULT_COLOR": "#333",
6666
"NODE_DEFAULT_SHAPE": 2,
6767
"NODE_ERROR_COLOUR": "#E00",
68-
"NODE_FONT": "Arial",
68+
"NODE_FONT": "Inter",
6969
"NODE_MIN_WIDTH": 50,
7070
"NODE_MODES": [
7171
"Always",

0 commit comments

Comments
 (0)