@fsegurai/codemirror-theme-android-studio 6.0.5 → 6.0.6
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 +10 -10
- package/dist/index.js +10 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22,27 +22,27 @@ base0C = '#a9b7c6'; // AttributeName
|
|
|
22
22
|
const androidStudioTheme = view.EditorView.theme({
|
|
23
23
|
'&': {
|
|
24
24
|
color: base01,
|
|
25
|
-
backgroundColor: base00
|
|
25
|
+
backgroundColor: base00,
|
|
26
26
|
},
|
|
27
27
|
'.cm-content': {
|
|
28
|
-
caretColor: base04
|
|
28
|
+
caretColor: base04,
|
|
29
29
|
},
|
|
30
30
|
'&.cm-focused .cm-cursor': {
|
|
31
|
-
borderLeftColor: base04
|
|
31
|
+
borderLeftColor: base04,
|
|
32
32
|
},
|
|
33
33
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
34
|
-
backgroundColor: base02
|
|
34
|
+
backgroundColor: base02,
|
|
35
35
|
},
|
|
36
36
|
'.cm-activeLine': {
|
|
37
|
-
backgroundColor: base03
|
|
37
|
+
backgroundColor: base03,
|
|
38
38
|
},
|
|
39
39
|
'.cm-gutters': {
|
|
40
40
|
backgroundColor: base00,
|
|
41
|
-
color: base01
|
|
41
|
+
color: base01,
|
|
42
42
|
},
|
|
43
43
|
'.cm-tooltip': {
|
|
44
|
-
backgroundColor: base01
|
|
45
|
-
}
|
|
44
|
+
backgroundColor: base01,
|
|
45
|
+
},
|
|
46
46
|
}, { dark: true });
|
|
47
47
|
// Define the highlighting style for code in the Android Studio theme.
|
|
48
48
|
const androidStudioHighlightStyle = language.HighlightStyle.define([
|
|
@@ -54,12 +54,12 @@ const androidStudioHighlightStyle = language.HighlightStyle.define([
|
|
|
54
54
|
{ tag: [highlight.tags.string, highlight.tags.propertyName, highlight.tags.attributeValue], color: base0A },
|
|
55
55
|
{ tag: [highlight.tags.heading, highlight.tags.typeName], color: base0B },
|
|
56
56
|
{ tag: [highlight.tags.attributeName], color: base0C },
|
|
57
|
-
{ tag: highlight.tags.emphasis, fontStyle: 'italic' }
|
|
57
|
+
{ tag: highlight.tags.emphasis, fontStyle: 'italic' },
|
|
58
58
|
]);
|
|
59
59
|
// Extension to enable the Android Studio theme (both the editor theme and the highlight style).
|
|
60
60
|
const androidStudio = [
|
|
61
61
|
androidStudioTheme,
|
|
62
|
-
language.syntaxHighlighting(androidStudioHighlightStyle)
|
|
62
|
+
language.syntaxHighlighting(androidStudioHighlightStyle),
|
|
63
63
|
];
|
|
64
64
|
|
|
65
65
|
exports.androidStudio = androidStudio;
|
package/dist/index.js
CHANGED
|
@@ -20,27 +20,27 @@ base0C = '#a9b7c6'; // AttributeName
|
|
|
20
20
|
const androidStudioTheme = /*@__PURE__*/EditorView.theme({
|
|
21
21
|
'&': {
|
|
22
22
|
color: base01,
|
|
23
|
-
backgroundColor: base00
|
|
23
|
+
backgroundColor: base00,
|
|
24
24
|
},
|
|
25
25
|
'.cm-content': {
|
|
26
|
-
caretColor: base04
|
|
26
|
+
caretColor: base04,
|
|
27
27
|
},
|
|
28
28
|
'&.cm-focused .cm-cursor': {
|
|
29
|
-
borderLeftColor: base04
|
|
29
|
+
borderLeftColor: base04,
|
|
30
30
|
},
|
|
31
31
|
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
32
|
-
backgroundColor: base02
|
|
32
|
+
backgroundColor: base02,
|
|
33
33
|
},
|
|
34
34
|
'.cm-activeLine': {
|
|
35
|
-
backgroundColor: base03
|
|
35
|
+
backgroundColor: base03,
|
|
36
36
|
},
|
|
37
37
|
'.cm-gutters': {
|
|
38
38
|
backgroundColor: base00,
|
|
39
|
-
color: base01
|
|
39
|
+
color: base01,
|
|
40
40
|
},
|
|
41
41
|
'.cm-tooltip': {
|
|
42
|
-
backgroundColor: base01
|
|
43
|
-
}
|
|
42
|
+
backgroundColor: base01,
|
|
43
|
+
},
|
|
44
44
|
}, { dark: true });
|
|
45
45
|
// Define the highlighting style for code in the Android Studio theme.
|
|
46
46
|
const androidStudioHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
@@ -52,12 +52,12 @@ const androidStudioHighlightStyle = /*@__PURE__*/HighlightStyle.define([
|
|
|
52
52
|
{ tag: [tags.string, tags.propertyName, tags.attributeValue], color: base0A },
|
|
53
53
|
{ tag: [tags.heading, tags.typeName], color: base0B },
|
|
54
54
|
{ tag: [tags.attributeName], color: base0C },
|
|
55
|
-
{ tag: tags.emphasis, fontStyle: 'italic' }
|
|
55
|
+
{ tag: tags.emphasis, fontStyle: 'italic' },
|
|
56
56
|
]);
|
|
57
57
|
// Extension to enable the Android Studio theme (both the editor theme and the highlight style).
|
|
58
58
|
const androidStudio = [
|
|
59
59
|
androidStudioTheme,
|
|
60
|
-
/*@__PURE__*/syntaxHighlighting(androidStudioHighlightStyle)
|
|
60
|
+
/*@__PURE__*/syntaxHighlighting(androidStudioHighlightStyle),
|
|
61
61
|
];
|
|
62
62
|
|
|
63
63
|
export { androidStudio, androidStudioHighlightStyle, androidStudioTheme };
|