lexgui 0.7.2 → 0.7.3

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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  const LX = {
10
- version: "0.7.2",
10
+ version: "0.7.3",
11
11
  ready: false,
12
12
  extensions: [], // Store extensions used
13
13
  signals: {}, // Events and triggers
@@ -375,7 +375,7 @@ function _createCommandbar( root )
375
375
  const instances = LX.CodeEditor.getInstances();
376
376
  if( !instances.length || !instances[ 0 ].area.root.offsetHeight ) return;
377
377
 
378
- const languages = instances[ 0 ].languages;
378
+ const languages = LX.CodeEditor.languages;
379
379
 
380
380
  for( let l of Object.keys( languages ) )
381
381
  {
@@ -1274,7 +1274,7 @@ class DropdownMenu {
1274
1274
  }
1275
1275
  else if( item.icon )
1276
1276
  {
1277
- const icon = LX.makeIcon( item.icon, { svgClass: disabled ? "fg-tertiary" : item.className } );
1277
+ const icon = LX.makeIcon( item.icon, { svgClass: disabled ? "fg-tertiary" : item.svgClass ?? item.className } );
1278
1278
  menuItem.prepend( icon );
1279
1279
  }
1280
1280
  else if( item.checked == undefined && applyIconPadding ) // no checkbox, no icon, apply padding if there's checkbox or icon in other items