@codebolt/litegraph 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,12 +180,8 @@
180
180
  .litegraph.litesearchbox {
181
181
  font-family: Tahoma, sans-serif;
182
182
  position: absolute;
183
- background-color: #2e2e2e;
184
- padding: 8px;
185
- box-shadow: 0 0 10px black !important;
186
- border-radius: 6px;
187
- min-width: 300px;
188
- z-index: 10;
183
+ background-color: rgba(0, 0, 0, 0.5);
184
+ padding-top: 4px;
189
185
  }
190
186
 
191
187
  .litegraph.litesearchbox input,
@@ -193,20 +189,12 @@
193
189
  margin-top: 3px;
194
190
  min-width: 60px;
195
191
  min-height: 1.5em;
196
- background-color: #1a1a1a;
197
- border: 1px solid #444;
198
- color: #aaa;
199
- padding: 4px 10px;
192
+ background-color: black;
193
+ border: 0;
194
+ color: white;
195
+ padding-left: 10px;
200
196
  margin-right: 5px;
201
197
  max-width: 300px;
202
- border-radius: 4px;
203
- outline: none;
204
- }
205
-
206
- .litegraph.litesearchbox input:focus,
207
- .litegraph.litesearchbox select:focus {
208
- border-color: #666;
209
- color: #fff;
210
198
  }
211
199
 
212
200
  .litegraph.litesearchbox .name {
@@ -214,86 +202,52 @@
214
202
  min-width: 60px;
215
203
  min-height: 1.5em;
216
204
  padding-left: 10px;
217
- color: #dde;
218
- font-weight: bold;
219
205
  }
220
206
 
221
207
  .litegraph.litesearchbox .helper {
222
208
  overflow: auto;
223
209
  max-height: 200px;
224
- margin-top: 8px;
225
- border-radius: 4px;
226
- }
227
-
228
- /* Custom scrollbar for searchbox helper */
229
- .litegraph.litesearchbox .helper::-webkit-scrollbar {
230
- width: 8px;
231
- }
232
-
233
- .litegraph.litesearchbox .helper::-webkit-scrollbar-track {
234
- background: #1a1a1a;
235
- border-radius: 4px;
236
- }
237
-
238
- .litegraph.litesearchbox .helper::-webkit-scrollbar-thumb {
239
- background: #555;
240
- border-radius: 4px;
241
- }
242
-
243
- .litegraph.litesearchbox .helper::-webkit-scrollbar-thumb:hover {
244
- background: #666;
245
- }
246
-
247
- /* Firefox scrollbar styling */
248
- .litegraph.litesearchbox .helper {
249
- scrollbar-width: thin;
250
- scrollbar-color: #555 #1a1a1a;
210
+ margin-top: 2px;
251
211
  }
252
212
 
253
213
  .litegraph.lite-search-item {
254
214
  font-family: Tahoma, sans-serif;
255
- background-color: transparent;
256
- color: #aaa;
257
- padding: 4px 8px;
258
- margin: 2px;
259
- cursor: pointer;
260
- border-radius: 4px;
261
- font-size: 12px;
262
- -moz-user-select: none;
263
- -webkit-user-select: none;
264
- user-select: none;
215
+ background-color: rgba(0, 0, 0, 0.5);
216
+ color: white;
217
+ padding-top: 2px;
265
218
  }
266
219
 
267
220
  .litegraph.lite-search-item.not_in_filter {
268
- color: #999;
221
+ /*background-color: rgba(50, 50, 50, 0.5);*/
222
+ /*color: #999;*/
223
+ color: #b99;
269
224
  font-style: italic;
270
- opacity: 0.7;
271
225
  }
272
226
 
273
227
  .litegraph.lite-search-item.generic_type {
228
+ /*background-color: rgba(50, 50, 50, 0.5);*/
229
+ /*color: #DD9;*/
274
230
  color: #999;
275
231
  font-style: italic;
276
- opacity: 0.7;
277
232
  }
278
233
 
279
234
  .litegraph.lite-search-item:hover,
280
235
  .litegraph.lite-search-item.selected {
281
- background-color: #444 !important;
282
- color: #eee;
283
- transition: all 0.2s;
236
+ cursor: pointer;
237
+ background-color: white;
238
+ color: black;
284
239
  }
285
240
 
286
241
  .litegraph.lite-search-item-type {
287
242
  display: inline-block;
288
- background: #1a1a1a;
243
+ background: rgba(0, 0, 0, 0.2);
289
244
  margin-left: 5px;
290
- font-size: 10px;
245
+ font-size: 14px;
291
246
  padding: 2px 5px;
292
247
  position: relative;
293
- top: -1px;
248
+ top: -2px;
294
249
  opacity: 0.8;
295
- border-radius: 3px;
296
- border: 1px solid #444;
250
+ border-radius: 4px;
297
251
  }
298
252
 
299
253
  /* DIALOGs ******/
@@ -541,6 +495,16 @@
541
495
  padding-left: 12px;
542
496
  }
543
497
 
498
+ .graphmenu-entry.danger,
499
+ .litemenu-entry.danger {
500
+ color: var(--error-text) !important;
501
+ }
502
+
503
+ .litegraph .litemenu-entry.danger:hover:not(.disabled) {
504
+ color: var(--error-text) !important;
505
+ opacity: 0.8;
506
+ }
507
+
544
508
  .graphmenu-entry.disabled {
545
509
  opacity: 0.3;
546
510
  }
@@ -681,4 +645,4 @@
681
645
  padding: 4px 18px;
682
646
  border-radius: 20px;
683
647
  cursor: pointer;
684
- }
648
+ }
@@ -11398,7 +11398,7 @@ class LGraphCanvas {
11398
11398
  if (this.bgcanvas == this.canvas) {
11399
11399
  this.drawBackCanvas();
11400
11400
  } else {
11401
- const scale = window.devicePixelRatio;
11401
+ const scale = 1;
11402
11402
  ctx.drawImage(
11403
11403
  this.bgcanvas,
11404
11404
  0,
@@ -11478,7 +11478,7 @@ class LGraphCanvas {
11478
11478
  ctx.strokeStyle = "#FFF";
11479
11479
  if (eDown && eMove) {
11480
11480
  const transform = ctx.getTransform();
11481
- const ratio = Math.max(1, window.devicePixelRatio);
11481
+ const ratio = 1;
11482
11482
  ctx.setTransform(ratio, 0, 0, ratio, 0, 0);
11483
11483
  const x2 = eDown.safeOffsetX;
11484
11484
  const y = eDown.safeOffsetY;
@@ -11637,7 +11637,7 @@ class LGraphCanvas {
11637
11637
  }
11638
11638
  const bg_already_painted = this.onRenderBackground ? this.onRenderBackground(canvas2, ctx) : false;
11639
11639
  if (!this.viewport) {
11640
- const scale = window.devicePixelRatio;
11640
+ const scale = 1;
11641
11641
  ctx.restore();
11642
11642
  ctx.setTransform(scale, 0, 0, scale, 0, 0);
11643
11643
  }