UI Improvements

This commit is contained in:
Leon Böttger committed 2025-06-02 14:31:38 +02:00
1 parent 98da599302
commit 90e3e23905
31 files changed
+458 -277

No files matched your search

+2 -2
View File
@@ -147,13 +147,13 @@ class ShareViewController: NSViewController, ShareExtensionDelegate {
private func openQrCodeView() {
if qrCodeSheetView == nil {
let contentView = QrCodeView {
let contentView = SmallSheetView(type: .sendToDeviceQrCode) {
self.closeQrCodeView()
}
let hostingView = NSHostingView(rootView: contentView)
let panel = NSPanel(contentRect: NSRect(x: 0, y: 0, width: qrCodeViewSize.width, height: qrCodeViewSize.height),
let panel = NSPanel(contentRect: NSRect(x: 0, y: 0, width: smallSheetViewSize.width, height: smallSheetViewSize.height),
styleMask: [.titled, .closable, .utilityWindow],
backing: .buffered,
defer: false)