jupyterlab_vscode_icons_extension 1.0.43 → 1.0.46

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.
Files changed (3) hide show
  1. package/lib/index.js +13 -13
  2. package/package.json +1 -1
  3. package/src/index.ts +13 -13
package/lib/index.js CHANGED
@@ -339,10 +339,10 @@ const plugin = {
339
339
  const injectIconOverrideCSS = () => {
340
340
  // Get icons: Python (custom SVG), Markdown (custom SVG), Claude (VSCode), README (custom)
341
341
  const claudeIcon = createLabIcon('file-type-claude');
342
- // Custom Markdown icon (from markdown.svg - purple M with arrow)
342
+ // Custom Markdown icon (from markdown.svg - purple M with arrow, darker #7a2491)
343
343
  const markdownSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309 327">
344
- <path fill="#912bac" opacity="1" stroke="none" d="m 138.68393,230.48651 c 36.58836,3.1e-4 72.68422,3.1e-4 108.78008,3.1e-4 0.13988,0.49669 0.0821,0.12537 -3.34406,3.81472 -27.34165,24.16766 -54.43119,49.41695 -81.72391,73.62893 -2.65146,2.35216 -4.5582,3.21609 -7.64686,0.37229 -26.89754,-24.76539 -75.191307,-68.40096 -80.889724,-74.12425 -0.744118,-0.74735 -1.274501,-1.57204 -2.95867,-3.69233 23.309236,0 45.299954,0 67.783144,3.3e-4 z"/>
345
- <path fill="#912bac" d="m 61.156397,14.443673 h 69.176263 q 14.81059,56.661581 23.29958,97.452667 l 5.96036,-27.150338 q 3.61233,-15.870486 7.76652,-30.954008 l 10.6564,-39.348321 H 248.6367 L 276.09047,189.5437 H 221.90541 L 207.27544,69.137838 173.50009,189.5437 H 136.47364 L 101.07273,68.875516 86.984609,189.5437 H 35.147571 Z"/>
344
+ <path fill="#7a2491" opacity="1" stroke="none" d="m 138.68393,230.48651 c 36.58836,3.1e-4 72.68422,3.1e-4 108.78008,3.1e-4 0.13988,0.49669 0.0821,0.12537 -3.34406,3.81472 -27.34165,24.16766 -54.43119,49.41695 -81.72391,73.62893 -2.65146,2.35216 -4.5582,3.21609 -7.64686,0.37229 -26.89754,-24.76539 -75.191307,-68.40096 -80.889724,-74.12425 -0.744118,-0.74735 -1.274501,-1.57204 -2.95867,-3.69233 23.309236,0 45.299954,0 67.783144,3.3e-4 z"/>
345
+ <path fill="#7a2491" d="m 61.156397,14.443673 h 69.176263 q 14.81059,56.661581 23.29958,97.452667 l 5.96036,-27.150338 q 3.61233,-15.870486 7.76652,-30.954008 l 10.6564,-39.348321 H 248.6367 L 276.09047,189.5437 H 221.90541 L 207.27544,69.137838 173.50009,189.5437 H 136.47364 L 101.07273,68.875516 86.984609,189.5437 H 35.147571 Z"/>
346
346
  </svg>`;
347
347
  // Custom Python icon (simplified official logo - 50% reduced fidelity)
348
348
  const pythonSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 110">
@@ -359,9 +359,9 @@ const plugin = {
359
359
  <path fill="url(#py-b)" d="M55,0C29,0,29,10,29,12v13h27v4H19C11,29,0,34,0,55c0,20,8,27,16,27h9V69c0-6,3-16,16-16h26c4,0,15-2,15-14V14C82,11,82,0,55,0zM40,8c3,0,5,2,5,5s-2,5-5,5-5-2-5-5S37,8,40,8z"/>
360
360
  <path fill="url(#py-y)" d="M55,110c26,0,26-10,26-12V85H54v-4h37c8,0,18-5,18-26 0-23-11-27-16-27h-9v13c0,6-3,16-16,16H42c-4,0-15,2-15,14v24c0,3,0,14,28,14zM70,101c-3,0-5-2-5-5s2-5,5-5 5,2,5,5S73,101,70,101z"/>
361
361
  </svg>`;
362
- // Custom README icon (info icon from info2.svg - color #aa4fb2)
362
+ // Custom README icon (info icon from info2.svg - color #8f4397, slightly darker)
363
363
  const readmeSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
364
- <path fill="#aa4fb2" d="m 9.5247234,12.218859 v 75.35612 a 2.9104166,2.9104166 45 0 0 2.9104166,2.910417 l 76.222217,0 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 12.218859 A 2.9104166,2.9104166 45 0 0 88.657357,9.3084428 H 12.43514 A 2.9104166,2.9104166 135 0 0 9.5247234,12.218859 Z m 36.2236286,5.918502 h 11.515059 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 3.482474 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 H 45.748352 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -3.482474 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z M 30.307434,33.442887 h 25.62996 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 34.844385 a 2.9104166,2.9104166 45 0 0 2.910417,2.910417 h 10.661879 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 1.607136 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 H 30.307434 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -1.607136 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 h 10.946618 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 43.931136 a 2.9104166,2.9104166 45 0 0 -2.910417,-2.910417 l -10.946618,0 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -1.756998 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z"/>
364
+ <path fill="#8f4397" d="m 9.5247234,12.218859 v 75.35612 a 2.9104166,2.9104166 45 0 0 2.9104166,2.910417 l 76.222217,0 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 12.218859 A 2.9104166,2.9104166 45 0 0 88.657357,9.3084428 H 12.43514 A 2.9104166,2.9104166 135 0 0 9.5247234,12.218859 Z m 37.0053096,8.347863 h 7.83503 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 5.502919 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 h -7.83503 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -5.502919 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z m -6.168542,18.949514 h 15.147096 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 23.572299 a 2.9104166,2.9104166 45 0 0 2.910417,2.910417 h 4.740796 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 3.979719 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 l -26.767059,0 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -4.508886 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 h 4.439788 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 52.890044 A 2.9104166,2.9104166 45 0 0 43.742946,49.979627 H 40.361491 A 2.9104166,2.9104166 45 0 1 37.451074,47.06921 v -4.642557 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z"/>
365
365
  </svg>`;
366
366
  // Get SVG content
367
367
  const claudeSvg = claudeIcon.svgstr;
@@ -384,8 +384,8 @@ const plugin = {
384
384
  .jp-DirListing-item[data-file-type="notebook"][data-jupytext-py] .jp-DirListing-itemIcon::before {
385
385
  content: '';
386
386
  display: inline-block;
387
- width: 18px;
388
- height: 18px;
387
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
388
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
389
389
  background-image: url('${pythonDataUri}');
390
390
  background-size: contain;
391
391
  background-repeat: no-repeat;
@@ -400,8 +400,8 @@ const plugin = {
400
400
  .jp-DirListing-item[data-file-type="notebook"][data-jupytext-md] .jp-DirListing-itemIcon::before {
401
401
  content: '';
402
402
  display: inline-block;
403
- width: 18px;
404
- height: 18px;
403
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
404
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
405
405
  background-image: url('${markdownDataUri}');
406
406
  background-size: contain;
407
407
  background-repeat: no-repeat;
@@ -416,8 +416,8 @@ const plugin = {
416
416
  .jp-DirListing-item[data-file-type="notebook"][data-claude-md] .jp-DirListing-itemIcon::before {
417
417
  content: '';
418
418
  display: inline-block;
419
- width: 18px;
420
- height: 18px;
419
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
420
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
421
421
  background-image: url('${claudeDataUri}');
422
422
  background-size: contain;
423
423
  background-repeat: no-repeat;
@@ -433,8 +433,8 @@ const plugin = {
433
433
  .jp-DirListing-item[data-file-type="notebook"][data-readme-md] .jp-DirListing-itemIcon::before {
434
434
  content: '';
435
435
  display: inline-block;
436
- width: 20px;
437
- height: 20px;
436
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
437
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
438
438
  background-image: url('${readmeDataUri}');
439
439
  background-size: contain;
440
440
  background-repeat: no-repeat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_vscode_icons_extension",
3
- "version": "1.0.43",
3
+ "version": "1.0.46",
4
4
  "description": "Jupyterlab extension with a shameless rip-off of the vscode-icons into our beloved environment",
5
5
  "keywords": [
6
6
  "jupyter",
package/src/index.ts CHANGED
@@ -381,10 +381,10 @@ const plugin: JupyterFrontEndPlugin<void> = {
381
381
  // Get icons: Python (custom SVG), Markdown (custom SVG), Claude (VSCode), README (custom)
382
382
  const claudeIcon = createLabIcon('file-type-claude');
383
383
 
384
- // Custom Markdown icon (from markdown.svg - purple M with arrow)
384
+ // Custom Markdown icon (from markdown.svg - purple M with arrow, darker #7a2491)
385
385
  const markdownSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309 327">
386
- <path fill="#912bac" opacity="1" stroke="none" d="m 138.68393,230.48651 c 36.58836,3.1e-4 72.68422,3.1e-4 108.78008,3.1e-4 0.13988,0.49669 0.0821,0.12537 -3.34406,3.81472 -27.34165,24.16766 -54.43119,49.41695 -81.72391,73.62893 -2.65146,2.35216 -4.5582,3.21609 -7.64686,0.37229 -26.89754,-24.76539 -75.191307,-68.40096 -80.889724,-74.12425 -0.744118,-0.74735 -1.274501,-1.57204 -2.95867,-3.69233 23.309236,0 45.299954,0 67.783144,3.3e-4 z"/>
387
- <path fill="#912bac" d="m 61.156397,14.443673 h 69.176263 q 14.81059,56.661581 23.29958,97.452667 l 5.96036,-27.150338 q 3.61233,-15.870486 7.76652,-30.954008 l 10.6564,-39.348321 H 248.6367 L 276.09047,189.5437 H 221.90541 L 207.27544,69.137838 173.50009,189.5437 H 136.47364 L 101.07273,68.875516 86.984609,189.5437 H 35.147571 Z"/>
386
+ <path fill="#7a2491" opacity="1" stroke="none" d="m 138.68393,230.48651 c 36.58836,3.1e-4 72.68422,3.1e-4 108.78008,3.1e-4 0.13988,0.49669 0.0821,0.12537 -3.34406,3.81472 -27.34165,24.16766 -54.43119,49.41695 -81.72391,73.62893 -2.65146,2.35216 -4.5582,3.21609 -7.64686,0.37229 -26.89754,-24.76539 -75.191307,-68.40096 -80.889724,-74.12425 -0.744118,-0.74735 -1.274501,-1.57204 -2.95867,-3.69233 23.309236,0 45.299954,0 67.783144,3.3e-4 z"/>
387
+ <path fill="#7a2491" d="m 61.156397,14.443673 h 69.176263 q 14.81059,56.661581 23.29958,97.452667 l 5.96036,-27.150338 q 3.61233,-15.870486 7.76652,-30.954008 l 10.6564,-39.348321 H 248.6367 L 276.09047,189.5437 H 221.90541 L 207.27544,69.137838 173.50009,189.5437 H 136.47364 L 101.07273,68.875516 86.984609,189.5437 H 35.147571 Z"/>
388
388
  </svg>`;
389
389
 
390
390
  // Custom Python icon (simplified official logo - 50% reduced fidelity)
@@ -403,9 +403,9 @@ const plugin: JupyterFrontEndPlugin<void> = {
403
403
  <path fill="url(#py-y)" d="M55,110c26,0,26-10,26-12V85H54v-4h37c8,0,18-5,18-26 0-23-11-27-16-27h-9v13c0,6-3,16-16,16H42c-4,0-15,2-15,14v24c0,3,0,14,28,14zM70,101c-3,0-5-2-5-5s2-5,5-5 5,2,5,5S73,101,70,101z"/>
404
404
  </svg>`;
405
405
 
406
- // Custom README icon (info icon from info2.svg - color #aa4fb2)
406
+ // Custom README icon (info icon from info2.svg - color #8f4397, slightly darker)
407
407
  const readmeSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
408
- <path fill="#aa4fb2" d="m 9.5247234,12.218859 v 75.35612 a 2.9104166,2.9104166 45 0 0 2.9104166,2.910417 l 76.222217,0 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 12.218859 A 2.9104166,2.9104166 45 0 0 88.657357,9.3084428 H 12.43514 A 2.9104166,2.9104166 135 0 0 9.5247234,12.218859 Z m 36.2236286,5.918502 h 11.515059 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 3.482474 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 H 45.748352 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -3.482474 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z M 30.307434,33.442887 h 25.62996 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 34.844385 a 2.9104166,2.9104166 45 0 0 2.910417,2.910417 h 10.661879 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 1.607136 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 H 30.307434 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -1.607136 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 h 10.946618 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 43.931136 a 2.9104166,2.9104166 45 0 0 -2.910417,-2.910417 l -10.946618,0 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -1.756998 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z"/>
408
+ <path fill="#8f4397" d="m 9.5247234,12.218859 v 75.35612 a 2.9104166,2.9104166 45 0 0 2.9104166,2.910417 l 76.222217,0 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 12.218859 A 2.9104166,2.9104166 45 0 0 88.657357,9.3084428 H 12.43514 A 2.9104166,2.9104166 135 0 0 9.5247234,12.218859 Z m 37.0053096,8.347863 h 7.83503 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 5.502919 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 h -7.83503 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -5.502919 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z m -6.168542,18.949514 h 15.147096 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 23.572299 a 2.9104166,2.9104166 45 0 0 2.910417,2.910417 h 4.740796 a 2.9104166,2.9104166 45 0 1 2.910417,2.910417 v 3.979719 a 2.9104166,2.9104166 135 0 1 -2.910417,2.910417 l -26.767059,0 a 2.9104166,2.9104166 45 0 1 -2.910417,-2.910417 v -4.508886 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 h 4.439788 a 2.9104166,2.9104166 135 0 0 2.910417,-2.910417 V 52.890044 A 2.9104166,2.9104166 45 0 0 43.742946,49.979627 H 40.361491 A 2.9104166,2.9104166 45 0 1 37.451074,47.06921 v -4.642557 a 2.9104166,2.9104166 135 0 1 2.910417,-2.910417 z"/>
409
409
  </svg>`;
410
410
 
411
411
  // Get SVG content
@@ -431,8 +431,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
431
431
  .jp-DirListing-item[data-file-type="notebook"][data-jupytext-py] .jp-DirListing-itemIcon::before {
432
432
  content: '';
433
433
  display: inline-block;
434
- width: 18px;
435
- height: 18px;
434
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
435
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
436
436
  background-image: url('${pythonDataUri}');
437
437
  background-size: contain;
438
438
  background-repeat: no-repeat;
@@ -447,8 +447,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
447
447
  .jp-DirListing-item[data-file-type="notebook"][data-jupytext-md] .jp-DirListing-itemIcon::before {
448
448
  content: '';
449
449
  display: inline-block;
450
- width: 18px;
451
- height: 18px;
450
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
451
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
452
452
  background-image: url('${markdownDataUri}');
453
453
  background-size: contain;
454
454
  background-repeat: no-repeat;
@@ -463,8 +463,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
463
463
  .jp-DirListing-item[data-file-type="notebook"][data-claude-md] .jp-DirListing-itemIcon::before {
464
464
  content: '';
465
465
  display: inline-block;
466
- width: 18px;
467
- height: 18px;
466
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
467
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
468
468
  background-image: url('${claudeDataUri}');
469
469
  background-size: contain;
470
470
  background-repeat: no-repeat;
@@ -480,8 +480,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
480
480
  .jp-DirListing-item[data-file-type="notebook"][data-readme-md] .jp-DirListing-itemIcon::before {
481
481
  content: '';
482
482
  display: inline-block;
483
- width: 20px;
484
- height: 20px;
483
+ width: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
484
+ height: calc(var(--jp-ui-font-size1, 13px) * var(--jp-custom-icon-scale, 1.5));
485
485
  background-image: url('${readmeDataUri}');
486
486
  background-size: contain;
487
487
  background-repeat: no-repeat;