Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Adjust UI
  • Loading branch information
intitni committed Oct 23, 2025
commit c6d420183312ff78ee2a607e417dcac6e417268d
4 changes: 3 additions & 1 deletion Core/Sources/SuggestionWidget/ChatWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ChatGPTChatTab
import ChatTab
import ComposableArchitecture
import SwiftUI
import SharedUIComponents

private let r: Double = 8

Expand All @@ -21,13 +22,14 @@ struct ChatWindowView: View {

ChatTabBar(store: store)
.frame(height: 26)
.clipped()

Divider()

ChatTabContainer(store: store)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.xcodeStyleFrame(cornerRadius: 10)
.xcodeStyleFrame()
.ignoresSafeArea(edges: .top)
.onChange(of: store.isPanelDisplayed) { isDisplayed in
toggleVisibility(isDisplayed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,13 @@ struct CodeBlockSuggestionPanelView: View {
}
.xcodeStyleFrame(cornerRadius: {
switch suggestionPresentationMode {
case .nearbyTextCursor: 6
case .floatingWidget: nil
case .nearbyTextCursor:
if #available(macOS 26.0, *) {
return 8
} else {
return 6
}
case .floatingWidget: return nil
}
}())
}
Expand Down
8 changes: 6 additions & 2 deletions Tool/Sources/SharedUIComponents/XcodeStyleFrame.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ public struct XcodeLikeFrame<Content: View>: View {
) // Add an extra border just incase the background is not displayed.
.overlay(
RoundedRectangle(cornerRadius: max(0, cornerRadius - 1), style: .continuous)
.stroke(Color.white.opacity(0.2), style: .init(lineWidth: 1))
.stroke(Color.white.opacity(0.1), style: .init(lineWidth: 1))
.padding(1)
)
}
}

public extension View {
func xcodeStyleFrame(cornerRadius: Double? = nil) -> some View {
XcodeLikeFrame(cornerRadius: cornerRadius ?? 10, content: self)
if #available(macOS 26.0, *) {
XcodeLikeFrame(cornerRadius: cornerRadius ?? 14, content: self)
} else {
XcodeLikeFrame(cornerRadius: cornerRadius ?? 10, content: self)
}
}
}

2 changes: 1 addition & 1 deletion Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_VERSION = 0.36.0
APP_BUILD = 474
APP_BUILD = 476
RELEASE_CHANNEL =
RELEASE_NUMBER = 1