Skip to content

Commit 7981a35

Browse files
Implemented backup font families as per issue jagenjo#294 on Jagenjo's LiteGraph.js
1 parent e7f7076 commit 7981a35

File tree

3 files changed

+12
-46
lines changed

3 files changed

+12
-46
lines changed

css/litegraph-editor.css

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,11 @@
66

77
background-color: #333;
88
color: #eee;
9-
font: 14px Tahoma;
9+
font: 14px "Tahoma", sans-serif;
1010

1111
position: relative;
1212
}
1313

14-
.litegraph-editor h1 {
15-
font-family: "Metro Light", Tahoma;
16-
color: #ddd;
17-
font-size: 28px;
18-
padding-left: 10px;
19-
/*text-shadow: 0 1px 1px #333, 0 -1px 1px #777;*/
20-
margin: 0;
21-
font-weight: normal;
22-
}
23-
24-
.litegraph-editor h1 span {
25-
font-family: "Arial";
26-
font-size: 14px;
27-
font-weight: normal;
28-
color: #aaa;
29-
}
30-
31-
.litegraph-editor h2 {
32-
font-family: "Metro Light";
33-
padding: 5px;
34-
margin-left: 10px;
35-
}
36-
3714
.litegraph-editor * {
3815
box-sizing: border-box;
3916
}
@@ -84,7 +61,7 @@
8461
position: absolute;
8562
top: 2px;
8663
right: 2px;
87-
font-family: "Tahoma";
64+
font-family: "Tahoma", sans-serif;
8865
font-size: 14px;
8966
color: #aaa;
9067
cursor: pointer;
@@ -93,14 +70,11 @@
9370
/* BUTTONS **********************/
9471

9572
.litegraph-editor .btn {
96-
/*font-family: "Metro Light";*/
9773
color: #ccc;
9874
font-size: 20px;
9975
min-width: 30px;
100-
/*border-radius: 0.3em;*/
10176
border: 0 solid #666;
10277
background-color: #3f3f3f;
103-
/*box-shadow: 0 0 3px black;*/
10478
padding: 4px 10px;
10579
cursor: pointer;
10680
transition: all 1s;
@@ -155,7 +129,7 @@
155129
/* METER *********************/
156130

157131
.litegraph-editor .loadmeter {
158-
font-family: "Tahoma";
132+
font-family: "Tahoma", sans-serif;
159133
color: #aaa;
160134
font-size: 12px;
161135
border-radius: 2px;
@@ -193,7 +167,7 @@
193167
width: 100%;
194168
background-color: black;
195169
padding: 4px;
196-
font: 16px monospace;
170+
font: 16px "Consolas", monospace;
197171
overflow: auto;
198172
resize: none;
199173
outline: none;

css/litegraph.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
/*cursor: crosshair;*/
55
user-select: none;
66
outline: none;
7-
font-family: Tahoma, sans-serif;
7+
font-family: "Tahoma", sans-serif;
88
}
99

1010
.lgraphcanvas * {
1111
box-sizing: border-box;
1212
}
1313

1414
.litegraph.litecontextmenu {
15-
font-family: Tahoma, sans-serif;
15+
font-family: "Tahoma", sans-serif;
1616
position: fixed;
1717
top: 100px;
1818
left: 100px;
@@ -48,7 +48,7 @@
4848
}
4949

5050
.litegraph .litemenubar ul {
51-
font-family: Tahoma, sans-serif;
51+
font-family: "Tahoma", sans-serif;
5252
margin: 0;
5353
padding: 0;
5454
}
@@ -162,7 +162,7 @@
162162
}
163163

164164
.litegraph.litesearchbox {
165-
font-family: Tahoma, sans-serif;
165+
font-family: "Tahoma", sans-serif;
166166
position: absolute;
167167
background-color: rgba(0, 0, 0, 0.5);
168168
padding-top: 4px;
@@ -194,7 +194,7 @@
194194
}
195195

196196
.litegraph.lite-search-item {
197-
font-family: Tahoma, sans-serif;
197+
font-family: "Tahoma", sans-serif;
198198
background-color: rgba(0, 0, 0, 0.5);
199199
color: white;
200200
padding-top: 2px;
@@ -278,7 +278,7 @@
278278
.litegraph .dialog .dialog-footer { height: 50px; padding: 10px; border-top: 1px solid #1a1a1a;}
279279

280280
.litegraph .dialog .dialog-header .dialog-title {
281-
font: 20px "Arial";
281+
font: 20px "Arial", sans-serif;
282282
margin: 4px;
283283
padding: 4px 10px;
284284
display: inline-block;

editor/style.css

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ html,body {
88
body {
99
background-color: #333;
1010
color: #EEE;
11-
font: 14px Tahoma;
12-
}
13-
14-
h1 {
15-
font-family: "Metro Light",Tahoma;
16-
}
17-
18-
h2 {
19-
font-family: "Metro Light";
11+
font: 14px "Tahoma", sans-serif;
2012
}
2113

2214
#main {
@@ -125,7 +117,7 @@ label {
125117
/*border-radius: 4px;*/
126118
padding: 2px;
127119
/*box-shadow: inset 0 0 3px #333; */
128-
font-family: Verdana;
120+
font-family: "Verdana", sans-serif;
129121
width: 250px;
130122
}
131123

0 commit comments

Comments
 (0)