lexgui 0.1.22 → 0.1.24

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.
package/build/lexgui.css CHANGED
@@ -5,6 +5,7 @@
5
5
  --global-font: 'Noto Sans', sans-serif; /*'Rubik', sans-serif; */
6
6
  --global-selected: #3e57e4;
7
7
  --global-selected-light: #7b8ae2;
8
+ --global-selected-dark: #344bccb7;
8
9
  --global-color-primary: #232323;
9
10
  --global-color-secondary: #343434;
10
11
  --global-color-terciary: #444;
@@ -131,7 +132,7 @@ body.nocursor * {
131
132
  #global_search {
132
133
  position: absolute;
133
134
  background-color: var(--global-blur-background);
134
- -webkit-backdrop-filter: blur(12px);
135
+ --webkit-backdrop-filter: blur(12px);
135
136
  backdrop-filter: blur(12px);
136
137
  border-radius: 8px;
137
138
  border: 1px solid #d0d0ec6b;
@@ -142,6 +143,7 @@ body.nocursor * {
142
143
  flex-wrap: wrap;
143
144
  z-index: 105;
144
145
  -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); /* this fixes the overflow:hidden in Chrome/Opera */
146
+ mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); /* this fixes the overflow:hidden in Chrome/Opera */
145
147
  /* box-shadow: 0 2px 10px black; */
146
148
  }
147
149
 
@@ -1195,6 +1197,7 @@ input::-webkit-inner-spin-button {
1195
1197
 
1196
1198
  /* Firefox */
1197
1199
  input[type=number] {
1200
+ appearance: textfield;
1198
1201
  -moz-appearance: textfield;
1199
1202
  }
1200
1203
 
@@ -1784,10 +1787,10 @@ meter::-webkit-meter-even-less-good-value {
1784
1787
  z-index: 102;
1785
1788
  position: absolute;
1786
1789
  padding-right: 20px;
1787
- border-bottom-left-radius: 6px;
1788
- border-bottom-right-radius: 6px;
1789
- box-shadow: 0 0 6px black !important;
1790
+ border-radius: 4px;
1791
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.63) !important;
1790
1792
  background-color: var(--global-blur-background);
1793
+ border: 1px solid #91909036;
1791
1794
  }
1792
1795
 
1793
1796
  .lexcontextmenubox:before {
@@ -1800,13 +1803,14 @@ meter::-webkit-meter-even-less-good-value {
1800
1803
  -webkit-backdrop-filter: blur(10px);
1801
1804
  backdrop-filter: blur(10px);
1802
1805
  z-index:-1;
1806
+ border-radius: 4px;
1803
1807
  }
1804
1808
 
1805
1809
  .lexcontextmenubox .lexcontextmenuentry {
1806
1810
  width: 100%;
1807
1811
  color: #c0c4cbe3;
1808
1812
  padding: 3px;
1809
- padding-left: 8px;
1813
+ padding-left: 10px;
1810
1814
  padding-right: 10px;
1811
1815
  padding-bottom: 4px;
1812
1816
  cursor: pointer;
@@ -1814,7 +1818,16 @@ meter::-webkit-meter-even-less-good-value {
1814
1818
  -moz-user-select: none;
1815
1819
  -ms-user-select: none;
1816
1820
  user-select: none;
1817
- border-left: 2px solid var(--global-selected-light);
1821
+ }
1822
+
1823
+ .lexcontextmenubox .lexcontextmenuentry:first-child {
1824
+ border-top-left-radius: 4px;
1825
+ border-top-right-radius: 4px;
1826
+ }
1827
+
1828
+ .lexcontextmenubox .lexcontextmenuentry:last-child {
1829
+ border-bottom-left-radius: 4px;
1830
+ border-bottom-right-radius: 4px;
1818
1831
  }
1819
1832
 
1820
1833
  .lexcontextmenubox .lexcontextmenuentry.cmtitle {
@@ -1846,17 +1859,17 @@ meter::-webkit-meter-even-less-good-value {
1846
1859
  float: right;
1847
1860
  margin-right: 0px;
1848
1861
  margin-top: 10px;
1849
- font-size: 11px;
1862
+ font-size: 10px;
1850
1863
  }
1851
1864
 
1852
1865
  /* submenu specified arrow */
1853
1866
  .lexcontextmenubox .lexcontextmenuentry a.fa-xs {
1854
1867
  float: right;
1855
- margin-top: -7px;
1868
+ margin-top: -8px;
1856
1869
  }
1857
1870
 
1858
1871
  .lexcontextmenubox .lexcontextmenuentry:hover:not(.cmtitle) {
1859
- background-color: var(--global-selected);
1872
+ background-color: var(--global-selected-dark);
1860
1873
  color: #f5f5f5;
1861
1874
  }
1862
1875
 
@@ -2732,8 +2745,33 @@ ul.lexassetscontent {
2732
2745
  letter-spacing: 0em !important;
2733
2746
  }
2734
2747
 
2735
- .codebasearea .lexareatab {
2748
+ .codebasearea .lexareatabs {
2736
2749
  padding: 0px;
2750
+ margin: 0px;
2751
+ }
2752
+
2753
+ .codebasearea .lexareatab {
2754
+ padding: 5px;
2755
+ border-radius: 0px !important;
2756
+ margin: 0px !important;
2757
+ border: 1px solid #91909036;
2758
+ border-right: none;
2759
+ background-color: var(--global-color-primary) !important;
2760
+ transition: none;
2761
+ }
2762
+
2763
+ .codebasearea .lexareatab:hover {
2764
+ background-color: var(--global-color-secondary) !important;
2765
+ }
2766
+
2767
+ .codebasearea .lexareatab:last-child {
2768
+ border-right: 1px solid #91909036;
2769
+ }
2770
+
2771
+ .codebasearea .lexareatab.selected {
2772
+ background-color: var(--global-color-secondary) !important;
2773
+ border-top: 1px solid var(--global-selected);
2774
+ border-bottom: none;
2737
2775
  }
2738
2776
 
2739
2777
  .codebasearea .lexareatab i {
@@ -2792,7 +2830,7 @@ ul.lexassetscontent {
2792
2830
  width: 48px;
2793
2831
  height: calc(100% - 62px);
2794
2832
  background-color: var(--global-branch-darker);
2795
- margin-top: 26px;
2833
+ margin-top: 28px;
2796
2834
  overflow: hidden;
2797
2835
  position: absolute;
2798
2836
  }
@@ -2923,7 +2961,8 @@ pre .line-gutter {
2923
2961
  height: var(--code-editor-row-height);
2924
2962
  position: absolute;
2925
2963
  border-left: 3px solid #fff !important;
2926
- z-index: 0 !important;
2964
+ z-index: 1 !important;
2965
+ opacity: 0.6;
2927
2966
  left: 0px;
2928
2967
  top: 0px;
2929
2968
  }
package/build/lexgui.js CHANGED
@@ -12,7 +12,7 @@ console.warn( 'Script "build/lexgui.js" is depracated and will be removed soon.
12
12
  */
13
13
 
14
14
  var LX = global.LX = {
15
- version: "0.1.22",
15
+ version: "0.1.24",
16
16
  ready: false,
17
17
  components: [], // specific pre-build components
18
18
  signals: {} // events and triggers
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  var LX = {
11
- version: "0.1.22",
11
+ version: "0.1.24",
12
12
  ready: false,
13
13
  components: [], // specific pre-build components
14
14
  signals: {} // events and triggers
package/changelog.md CHANGED
@@ -1,29 +1,55 @@
1
1
  # lexgui.js changelog
2
2
 
3
+ ## 0.1.24
4
+
5
+ Code Editor:
6
+ - Improved single and multiple cursor usability.
7
+ - Cursor can be added or removed using "Alt+LeftClick".
8
+ - Fixed clicks outside the code area.
9
+ - Minor bug fixes.
10
+
11
+ ## 0.1.23
12
+
13
+ Code Editor:
14
+ - Begin integration of multiple cursors ("Ctrl+ArrowDown").
15
+ - Code tabs have new VS Code-alike style.
16
+ - Improved CSS highlighting.
17
+ - Add Undo Steps to some actions that were missing.
18
+ - When using Ctrl+G, the selected line is now highlighted.
19
+
20
+ Minor fixes.
21
+
3
22
  ## 0.1.22
4
23
 
5
- Added REDO using "Ctrl+Y".
6
- Added FontSize customization. "Ctrl+PLUS", "Ctrl+MINUS" or "Ctrl+Wheel".
7
- Added "Ctrl+G" to scroll to specific line.
8
- General bug fixes.
24
+ Code Editor:
25
+ - Added REDO using "Ctrl+Y".
26
+ - Added FontSize customization. "Ctrl+PLUS", "Ctrl+MINUS" or "Ctrl+Wheel".
27
+ - Added "Ctrl+G" to scroll to specific line.
28
+
29
+ Minor fixes.
9
30
 
10
31
  ## 0.1.21
11
32
 
12
- Added "Ctrl+F" to find text in code tabs.
13
- "Shift+Backspace" deletes word at current position.
14
- Added "Markdown" syntax highlighting.
15
- Improved hightlighting of tag languages (HTML, Markdown, XML).
33
+ Code Editor:
34
+ - Added "Ctrl+F" to find text in code tabs.
35
+ - "Shift+Backspace" deletes word at current position.
36
+ - Added "Markdown" syntax highlighting.
37
+ - Improved hightlighting of tag languages (HTML, Markdown, XML).
16
38
 
17
39
  ## 0.1.20
18
40
 
19
- Active line is now hightlighted.
20
- Using CommitMono font (https://commitmono.com/) as the font for the Code Editor.
21
- Added "Rust" syntax highlighting.
22
- Improved all code selections (and some bugs fixed).
23
- Block comments are now working again (with bugs probably).
41
+ Code Editor:
42
+ - Active line is now hightlighted.
43
+ - Using CommitMono font (https://commitmono.com/) as the font for the Code Editor.
44
+ - Added "Rust" syntax highlighting.
45
+ - Improved all code selections (and some bugs fixed).
46
+ - Block comments are now working again (with bugs probably).
47
+
24
48
  Minor fixes.
25
49
 
26
50
  ## 0.1.19
27
51
 
28
- Add file explorer to Code Editor component.
52
+ Code Editor:
53
+ - Add file explorer to Code Editor component.
54
+
29
55
  Minor fixes.
@@ -2,6 +2,7 @@
2
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
6
  <title>LexGUI Code Editor Demo</title>
6
7
  <link rel="stylesheet" href="../build/lexgui.css">
7
8
  <link rel="icon" href="../images/icon.png">
@@ -20,14 +21,16 @@
20
21
  import { LX } from 'lexgui';
21
22
  import 'lexgui/components/codeeditor.js';
22
23
 
24
+ window.LX = LX;
25
+
23
26
  // init library and get main area
24
27
  let area = LX.init();
25
28
 
26
- const file_explorer = true;
29
+ const file_explorer = false;
27
30
 
28
31
  if( !file_explorer )
29
32
  {
30
- var [leftArea, rightArea] = area.split({ sizes:["55%","45%"] });
33
+ var [leftArea, rightArea] = area.split({ sizes:["40%","60%"] });
31
34
 
32
35
  var canvas = document.createElement('canvas');
33
36
  canvas.id = "mycanvas";
@@ -53,12 +56,12 @@
53
56
  });
54
57
 
55
58
  editor.loadFile( "../data/js_sample.js" );
56
- editor.loadFile( "../data/json_sample.json" );
57
- editor.loadFile( "../data/css_sample.css" );
58
- editor.loadFile( "../data/cpp_sample.cpp" );
59
- editor.loadFile( "../data/xml_sample.xml" );
60
- editor.loadFile( "../data/python_sample.py" );
61
- editor.loadFile( "../data/rust_sample.rs" );
59
+ // editor.loadFile( "../data/json_sample.json" );
60
+ // editor.loadFile( "../data/css_sample.css" );
61
+ // editor.loadFile( "../data/cpp_sample.cpp" );
62
+ // editor.loadFile( "../data/xml_sample.xml" );
63
+ // editor.loadFile( "../data/python_sample.py" );
64
+ // editor.loadFile( "../data/rust_sample.rs" );
62
65
  // editor.loadFile( "../localhost.bat" );
63
66
 
64
67
  if( !file_explorer )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",