Skip to content

Commit 13b7284

Browse files
committed
remove now unnecessaru themeWidget css module.
1 parent f70b1a8 commit 13b7284

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

app/gui/src/project-view/components/GraphEditor/CodeMirrorWidgetBase.vue

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { highlightStyle } from '@/util/codemirror/highlight'
99
import { Ok } from '@/util/data/result'
1010
import { useToast } from '@/util/toast'
1111
import { Extension, SelectionRange } from '@codemirror/state'
12-
import { ComponentInstance, ref, useCssModule, useTemplateRef, watch, watchEffect } from 'vue'
12+
import { ComponentInstance, ref, useTemplateRef, watch, watchEffect } from 'vue'
1313
1414
const props = defineProps<{
1515
widgetTypeId: WidgetTypeId
@@ -36,15 +36,13 @@ const emit = defineEmits<{
3636
userAction: [text: string, selection: SelectionRange]
3737
}>()
3838
39-
const themeWidget = highlightStyle(useCssModule('themeWidget'))
40-
4139
const editorRoot = useTemplateRef<ComponentInstance<typeof CodeMirrorRoot>>('editorRoot')
4240
4341
const { syncExt, connectSync } = useStringSync()
4442
const { editorView, setExtraExtensions } = useCodeMirror(editorRoot, {
4543
content: model.value,
4644
placeholder: () => props.placeholder ?? ' ',
47-
extensions: [syncExt, themeWidget],
45+
extensions: [syncExt],
4846
readonly: false,
4947
contentTestId: props.contentTestId,
5048
lineMode: () => props.lineMode ?? 'single',
@@ -156,29 +154,3 @@ defineExpose({
156154
}
157155
}
158156
</style>
159-
160-
<!--suppress CssUnusedSymbol -->
161-
<style module="themeWidget">
162-
.comment,
163-
.lineComment,
164-
.blockComment,
165-
.docComment,
166-
.name,
167-
.variableName,
168-
.definition-variableName,
169-
.literal,
170-
.string,
171-
.escape,
172-
.number,
173-
.keyword,
174-
.moduleKeyword,
175-
.modifier,
176-
.punctuation,
177-
.paren,
178-
.operator,
179-
.definitionOperator,
180-
.invalid {
181-
color: var(--color-node-text);
182-
transition: color 0.2s ease;
183-
}
184-
</style>

0 commit comments

Comments
 (0)