Skip to content

Commit

Permalink
Change weight and add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzsh committed May 2, 2024
1 parent 0c8a0b2 commit 06d25b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/CodeEditSourceEditor/Theme/EditorTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 06d25b1

Please sign in to comment.