diff --git a/Sources/CodeEditSourceEditor/Theme/EditorTheme.swift b/Sources/CodeEditSourceEditor/Theme/EditorTheme.swift index 1dc7f6ebf..dd709921f 100644 --- a/Sources/CodeEditSourceEditor/Theme/EditorTheme.swift +++ b/Sources/CodeEditSourceEditor/Theme/EditorTheme.swift @@ -83,11 +83,14 @@ public struct EditorTheme { } } + /// Gets the `strokeWidth` for the specified capture name. + /// - Parameter capture: The capture name + /// - Returns: a float representing `strokeWidth` func widthFor(_ capture: CaptureName?) -> Float { switch capture { case .include, .constructor, .keyword, .boolean, .variableBuiltin, .keywordReturn, .keywordFunction, .repeat, .conditional, .tag, .type: - return -4.0 + return -3.0 default: return 0.0 } }