@fsegurai/codemirror-theme-android-studio 6.2.0-beta.1 → 6.2.0-beta.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.
- package/dist/index.cjs +33 -33
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var view = require('@codemirror/view');
|
|
4
4
|
var language = require('@codemirror/language');
|
|
5
5
|
var highlight = require('@lezer/highlight');
|
|
6
|
-
var
|
|
6
|
+
var codemirrorThemeUtils = require('@fsegurai/codemirror-theme-utils');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Enhanced Android Studio theme color palette
|
|
@@ -47,17 +47,17 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
47
47
|
'&': {
|
|
48
48
|
color: base01,
|
|
49
49
|
backgroundColor: base00,
|
|
50
|
-
fontSize:
|
|
51
|
-
fontFamily:
|
|
50
|
+
fontSize: codemirrorThemeUtils.generalContent.fontSize,
|
|
51
|
+
fontFamily: codemirrorThemeUtils.generalContent.fontFamily,
|
|
52
52
|
},
|
|
53
53
|
// Content and cursor
|
|
54
54
|
'.cm-content': {
|
|
55
55
|
caretColor: cursor,
|
|
56
|
-
lineHeight:
|
|
56
|
+
lineHeight: codemirrorThemeUtils.generalContent.lineHeight,
|
|
57
57
|
},
|
|
58
58
|
'.cm-cursor, .cm-dropCursor': {
|
|
59
59
|
borderLeftColor: cursor,
|
|
60
|
-
borderLeftWidth:
|
|
60
|
+
borderLeftWidth: codemirrorThemeUtils.generalCursor.borderLeftWidth,
|
|
61
61
|
},
|
|
62
62
|
'.cm-fat-cursor': {
|
|
63
63
|
backgroundColor: `${cursor}99`,
|
|
@@ -71,7 +71,7 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
71
71
|
'.cm-searchMatch': {
|
|
72
72
|
backgroundColor: '#32593d',
|
|
73
73
|
outline: '1px solid #ffffff',
|
|
74
|
-
borderRadius:
|
|
74
|
+
borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
|
|
75
75
|
'& span': {
|
|
76
76
|
color: selectionForeground,
|
|
77
77
|
},
|
|
@@ -79,15 +79,15 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
79
79
|
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
80
80
|
backgroundColor: '#375580',
|
|
81
81
|
color: selectionForeground,
|
|
82
|
-
padding:
|
|
82
|
+
padding: codemirrorThemeUtils.generalSearchField.padding,
|
|
83
83
|
'& span': {
|
|
84
84
|
color: selectionForeground,
|
|
85
85
|
},
|
|
86
86
|
},
|
|
87
87
|
'.cm-search.cm-panel.cm-textfield': {
|
|
88
88
|
color: base01,
|
|
89
|
-
borderRadius:
|
|
90
|
-
padding:
|
|
89
|
+
borderRadius: codemirrorThemeUtils.generalSearchField.borderRadius,
|
|
90
|
+
padding: codemirrorThemeUtils.generalSearchField.padding,
|
|
91
91
|
},
|
|
92
92
|
// Panels
|
|
93
93
|
'.cm-panels': {
|
|
@@ -103,9 +103,9 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
103
103
|
'.cm-panel button': {
|
|
104
104
|
backgroundColor: darkBackground,
|
|
105
105
|
color: base01,
|
|
106
|
-
border:
|
|
107
|
-
borderRadius:
|
|
108
|
-
padding:
|
|
106
|
+
border: codemirrorThemeUtils.generalPanel.border,
|
|
107
|
+
borderRadius: codemirrorThemeUtils.generalPanel.borderRadius,
|
|
108
|
+
padding: codemirrorThemeUtils.generalPanel.padding,
|
|
109
109
|
},
|
|
110
110
|
'.cm-panel button:hover': {
|
|
111
111
|
backgroundColor: '#404040',
|
|
@@ -113,26 +113,26 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
113
113
|
// Line highlighting
|
|
114
114
|
'.cm-activeLine': {
|
|
115
115
|
backgroundColor: '#32323221',
|
|
116
|
-
borderRadius:
|
|
116
|
+
borderRadius: codemirrorThemeUtils.generalLine.borderRadius,
|
|
117
117
|
},
|
|
118
118
|
// Gutters
|
|
119
119
|
'.cm-gutters': {
|
|
120
120
|
backgroundColor: gutterBackground,
|
|
121
121
|
color: base04,
|
|
122
|
-
border:
|
|
122
|
+
border: codemirrorThemeUtils.generalGutter.border,
|
|
123
123
|
borderRight: '1px solid #3f3f3f',
|
|
124
|
-
paddingRight:
|
|
124
|
+
paddingRight: codemirrorThemeUtils.generalGutter.paddingRight,
|
|
125
125
|
},
|
|
126
126
|
'.cm-activeLineGutter': {
|
|
127
127
|
backgroundColor: highlightBackground,
|
|
128
128
|
color: '#c0c0c0',
|
|
129
|
-
fontWeight:
|
|
129
|
+
fontWeight: codemirrorThemeUtils.generalGutter.fontWeight,
|
|
130
130
|
},
|
|
131
131
|
'.cm-lineNumbers': {
|
|
132
|
-
fontSize:
|
|
132
|
+
fontSize: codemirrorThemeUtils.generalGutter.fontSize,
|
|
133
133
|
},
|
|
134
134
|
'.cm-foldGutter': {
|
|
135
|
-
fontSize:
|
|
135
|
+
fontSize: codemirrorThemeUtils.generalGutter.fontSize,
|
|
136
136
|
},
|
|
137
137
|
'.cm-foldGutter .cm-gutterElement': {
|
|
138
138
|
color: base04,
|
|
@@ -145,23 +145,23 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
145
145
|
'.cm-tooltip': {
|
|
146
146
|
backgroundColor: tooltipBackground,
|
|
147
147
|
border: '1px solid #5b5b5b',
|
|
148
|
-
borderRadius:
|
|
149
|
-
padding:
|
|
148
|
+
borderRadius: codemirrorThemeUtils.generalTooltip.borderRadius,
|
|
149
|
+
padding: codemirrorThemeUtils.generalTooltip.padding,
|
|
150
150
|
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.3)',
|
|
151
151
|
},
|
|
152
152
|
'.cm-tooltip-autocomplete': {
|
|
153
153
|
'& > ul > li': {
|
|
154
|
-
padding:
|
|
155
|
-
lineHeight:
|
|
154
|
+
padding: codemirrorThemeUtils.generalTooltip.padding,
|
|
155
|
+
lineHeight: codemirrorThemeUtils.generalTooltip.lineHeight,
|
|
156
156
|
},
|
|
157
157
|
'& > ul > li[aria-selected]': {
|
|
158
158
|
backgroundColor: selectionBackground,
|
|
159
159
|
color: selectionForeground,
|
|
160
|
-
borderRadius:
|
|
160
|
+
borderRadius: codemirrorThemeUtils.generalTooltip.borderRadiusSelected,
|
|
161
161
|
},
|
|
162
162
|
'& > ul > li > span.cm-completionIcon': {
|
|
163
163
|
color: base04,
|
|
164
|
-
paddingRight:
|
|
164
|
+
paddingRight: codemirrorThemeUtils.generalTooltip.paddingRight,
|
|
165
165
|
},
|
|
166
166
|
'& > ul > li > span.cm-completionDetail': {
|
|
167
167
|
color: base04,
|
|
@@ -198,27 +198,27 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
198
198
|
'.cm-matchingBracket': {
|
|
199
199
|
backgroundColor: activeBracketBg,
|
|
200
200
|
outline: `1px solid ${activeBracketBorder}`,
|
|
201
|
-
borderRadius:
|
|
201
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
202
202
|
},
|
|
203
203
|
'.cm-nonmatchingBracket': {
|
|
204
204
|
backgroundColor: '#53383e',
|
|
205
205
|
outline: `1px solid ${invalid}`,
|
|
206
|
-
borderRadius:
|
|
206
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
207
207
|
},
|
|
208
208
|
// Selection matches
|
|
209
209
|
'.cm-selectionMatch': {
|
|
210
210
|
backgroundColor: '#32593d40',
|
|
211
211
|
outline: `1px solid ${base0D}`,
|
|
212
|
-
borderRadius:
|
|
212
|
+
borderRadius: codemirrorThemeUtils.generalMatching.borderRadius,
|
|
213
213
|
},
|
|
214
214
|
// Fold placeholder
|
|
215
215
|
'.cm-foldPlaceholder': {
|
|
216
216
|
backgroundColor: tooltipBackground,
|
|
217
217
|
color: '#a1a1a1',
|
|
218
218
|
border: `1px dotted ${base04}`,
|
|
219
|
-
borderRadius:
|
|
220
|
-
padding:
|
|
221
|
-
margin:
|
|
219
|
+
borderRadius: codemirrorThemeUtils.generalPlaceholder.borderRadius,
|
|
220
|
+
padding: codemirrorThemeUtils.generalPlaceholder.padding,
|
|
221
|
+
margin: codemirrorThemeUtils.generalPlaceholder.margin,
|
|
222
222
|
},
|
|
223
223
|
// Focus outline
|
|
224
224
|
'&.cm-focused': {
|
|
@@ -227,15 +227,15 @@ const androidStudioTheme = view.EditorView.theme({
|
|
|
227
227
|
},
|
|
228
228
|
// Scrollbars
|
|
229
229
|
'& .cm-scroller::-webkit-scrollbar': {
|
|
230
|
-
width:
|
|
231
|
-
height:
|
|
230
|
+
width: codemirrorThemeUtils.generalScroller.width,
|
|
231
|
+
height: codemirrorThemeUtils.generalScroller.height,
|
|
232
232
|
},
|
|
233
233
|
'& .cm-scroller::-webkit-scrollbar-track': {
|
|
234
234
|
background: darkBackground,
|
|
235
235
|
},
|
|
236
236
|
'& .cm-scroller::-webkit-scrollbar-thumb': {
|
|
237
237
|
backgroundColor: '#5a5a5a',
|
|
238
|
-
borderRadius:
|
|
238
|
+
borderRadius: codemirrorThemeUtils.generalScroller.borderRadius,
|
|
239
239
|
border: `3px solid ${darkBackground}`,
|
|
240
240
|
},
|
|
241
241
|
'& .cm-scroller::-webkit-scrollbar-thumb:hover': {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorView } from '@codemirror/view';
|
|
2
2
|
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
3
3
|
import { tags } from '@lezer/highlight';
|
|
4
|
-
import { generalScroller, generalPlaceholder, generalMatching, generalTooltip, generalGutter, generalLine, generalPanel, generalSearchField, generalCursor, generalContent } from '@utils';
|
|
4
|
+
import { generalScroller, generalPlaceholder, generalMatching, generalTooltip, generalGutter, generalLine, generalPanel, generalSearchField, generalCursor, generalContent } from '@fsegurai/codemirror-theme-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Enhanced Android Studio theme color palette
|
package/package.json
CHANGED