Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
29bce2f
Merge tag '0.31.0' into develop
intitni Mar 8, 2024
d41469b
Merge tag '0.31.1' into develop
intitni Mar 13, 2024
432c72e
Remove the snapshot check when getting suggestions manually
intitni Mar 13, 2024
986afee
Merge branch 'feature/remove-snapshot-check-fetching-suggestion-manua…
intitni Mar 13, 2024
e27b1ab
Prevent sending discard suggestion action when there is no suggestion…
intitni Mar 13, 2024
ec69b12
Rename methods
intitni Mar 13, 2024
f15a747
Remove unneeded calls
intitni Mar 13, 2024
8e690b3
Fix that triggering the menubar dismisses suggestions
intitni Mar 13, 2024
e6ca4d4
Merge branch 'feature/fix-command-dismiss-suggestions' into develop
intitni Mar 13, 2024
48ce998
Add feature flags
intitni Mar 13, 2024
f6b04ed
Change runloop and mode according to flags
intitni Mar 13, 2024
ce40906
Merge branch 'feature/ax-notification-out-of-main-thread' into develop
intitni Mar 13, 2024
014023a
Update
intitni Mar 13, 2024
72fb69a
Update texts
intitni Mar 13, 2024
a7d1e74
Bump version to 0.31.2
intitni Mar 13, 2024
1ba39c7
Remove a feature flag
intitni Mar 14, 2024
c56de95
Update
intitni Mar 14, 2024
9f25f49
Update UI to look better in light mode
intitni Mar 14, 2024
bd5064e
Update suggestion panel corner radius to match Xcode completion panel
intitni Mar 14, 2024
d98a483
Adjust chat panel UI
intitni Mar 14, 2024
0144241
Improve scroll to bottom behavior of chat panel
intitni Mar 14, 2024
03890a8
Update
intitni Mar 14, 2024
db6907f
Bump build number
intitni Mar 14, 2024
38c3ee8
Adjust style
intitni Mar 14, 2024
4d1ae7c
Add todo
intitni Mar 14, 2024
c7d426f
Bump build number
intitni Mar 14, 2024
79e1e9b
Update appcast.xml
intitni Mar 14, 2024
205bbd0
Merge branch 'release/0.31.2'
intitni Mar 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update suggestion panel corner radius to match Xcode completion panel
  • Loading branch information
intitni committed Mar 14, 2024
commit bd5064ebe795dcdca4f5dade3676ac9ecbdab959
4 changes: 2 additions & 2 deletions Core/Sources/SuggestionWidget/Styles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ struct XcodeLikeFrame<Content: View>: View {
}

extension View {
func xcodeStyleFrame(cornerRadius: Double = 10) -> some View {
XcodeLikeFrame(content: self, cornerRadius: cornerRadius)
func xcodeStyleFrame(cornerRadius: Double? = nil) -> some View {
XcodeLikeFrame(content: self, cornerRadius: cornerRadius ?? 10)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ struct CodeBlockSuggestionPanel: View {
@Environment(\.colorScheme) var colorScheme
@AppStorage(\.suggestionCodeFontSize) var fontSize
@AppStorage(\.suggestionDisplayCompactMode) var suggestionDisplayCompactMode
@AppStorage(\.suggestionPresentationMode) var suggestionPresentationMode

struct ToolBar: View {
@ObservedObject var suggestion: CodeSuggestionProvider
Expand Down Expand Up @@ -112,7 +113,12 @@ struct CodeBlockSuggestionPanel: View {
ToolBar(suggestion: suggestion)
}
}
.xcodeStyleFrame()
.xcodeStyleFrame(cornerRadius: {
switch suggestionPresentationMode {
case .nearbyTextCursor: 6
case .floatingWidget: nil
}
}())
}
}

Expand Down