Elffuss BraidHub

kikocis/continue public

add textCodeBlcokBackground to GetTheme.kt
Changeset282bf0a91bf6d56505ce218a266d974bc5f8b072691b09ccdd1ea52d027e2ba2
AuthorNate <sestinj@gmail.com> · 2025-06-30 14:07 -07:00
CommitterNate <sestinj@gmail.com> · 2025-06-30 14:07 -07:00
Parentsab3ec12e1ea2

Browse the files at this changeset

1 file changed

modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/GetTheme.kt +4 −0
@@ -166,6 +166,9 @@
166166 val findMatchSelectedBackground = namedColor("SearchMatch.selectedBackground") ?:
167167 editorScheme.getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES)?.backgroundColor
168168
169+ // Use editor background with slight tint for code blocks
170+ val textCodeBlockBackground = slightChange(editorBackground, 3) ?: editorBackground
171+
169172 // These should match the keys in GUI's theme.ts
170173 val theme = mapOf(
171174 "background" to background,
@@ -197,6 +200,7 @@
197200 "warning" to warningColor,
198201 "error" to errorColor,
199202 "link" to link,
203+ "textCodeBlockBackground" to textCodeBlockBackground,
200204 "accent" to accentColor,
201205 "find-match" to findMatchBackground,
202206 "find-match-selected" to findMatchSelectedBackground,