From fbd14c22802e827503b6b8e12561fa99639227d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Sun, 18 Jan 2026 11:31:37 +0100 Subject: [PATCH] Fix toast view cutoff --- QuickDrop/InfoPlist.xcstrings | 11 +++++++---- QuickDrop/View/QuickDropToastView.swift | 9 +++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/QuickDrop/InfoPlist.xcstrings b/QuickDrop/InfoPlist.xcstrings index 76552f8..28ad665 100644 --- a/QuickDrop/InfoPlist.xcstrings +++ b/QuickDrop/InfoPlist.xcstrings @@ -11,7 +11,8 @@ "value" : "QuickDrop" } } - } + }, + "shouldTranslate" : false }, "CFBundleName" : { "comment" : "Bundle name", @@ -23,7 +24,8 @@ "value" : "QuickDrop" } } - } + }, + "shouldTranslate" : false }, "NSHumanReadableCopyright" : { "comment" : "Copyright (human-readable)", @@ -32,10 +34,11 @@ "en" : { "stringUnit" : { "state" : "new", - "value" : "" + "value" : "Copyright © 2025-2026 Leon Böttger" } } - } + }, + "shouldTranslate" : false }, "NSLocalNetworkUsageDescription" : { "comment" : "Privacy - Local Network Usage Description", diff --git a/QuickDrop/View/QuickDropToastView.swift b/QuickDrop/View/QuickDropToastView.swift index 16cb715..1594a05 100644 --- a/QuickDrop/View/QuickDropToastView.swift +++ b/QuickDrop/View/QuickDropToastView.swift @@ -8,7 +8,7 @@ import SwiftUI import AppKit -let toastViewSize = CGSize(width: 400, height: 100) +let toastViewSize = CGSize(width: 400, height: 120) struct QuickDropToastView: View { @ObservedObject var settings = Settings.shared @@ -122,9 +122,9 @@ struct QuickDropToastView: View { ) .overlay( RoundedRectangle(cornerRadius: 16, style: .continuous) - .stroke(Color.black.opacity(0.06), lineWidth: 1) + .stroke(Color.black.opacity(0.03), lineWidth: 1) ) - .shadow(color: Color.black.opacity(0.1), radius: 20) + .shadow(color: Color.black.opacity(0.03), radius: 20) .frame(maxWidth: .infinity) } } @@ -211,8 +211,9 @@ struct QuickDropToastView_Previews: PreviewProvider { onCancel: { } ) .frame(width: toastViewSize.width, height: toastViewSize.height) + .clipped() .padding(100) - .background(Color.white.opacity(0.2)) + .background(Color.black.opacity(0.2)) .onAppear { model.progress = 0.01 }