From 778047da93eefb0ff74084dd3124da4ecc6ac3a9 Mon Sep 17 00:00:00 2001 From: Marcin Czachursk Date: Sun, 12 Mar 2023 07:46:14 +0100 Subject: [PATCH] Fix text shadow. --- Vernissage.xcodeproj/project.pbxproj | 8 ++++---- VernissageWidget/Views/LargeWidgetView.swift | 4 ++-- VernissageWidget/Views/MediumWidgetView.swift | 4 ++-- VernissageWidget/Views/SmallWidgetView.swift | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Vernissage.xcodeproj/project.pbxproj b/Vernissage.xcodeproj/project.pbxproj index 8bf11f2..57f43b1 100644 --- a/Vernissage.xcodeproj/project.pbxproj +++ b/Vernissage.xcodeproj/project.pbxproj @@ -1221,7 +1221,7 @@ CODE_SIGN_ENTITLEMENTS = VernissageWidgetExtension.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 67; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageWidget/Info.plist; @@ -1249,7 +1249,7 @@ ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; CODE_SIGN_ENTITLEMENTS = VernissageWidgetExtension.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 67; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageWidget/Info.plist; @@ -1393,7 +1393,7 @@ CODE_SIGN_ENTITLEMENTS = Vernissage/Vernissage.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 67; DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\""; DEVELOPMENT_TEAM = B2U9FEKYP8; ENABLE_PREVIEWS = YES; @@ -1431,7 +1431,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = Vernissage/Vernissage.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 67; DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\""; DEVELOPMENT_TEAM = B2U9FEKYP8; ENABLE_PREVIEWS = YES; diff --git a/VernissageWidget/Views/LargeWidgetView.swift b/VernissageWidget/Views/LargeWidgetView.swift index 9731a1c..aed14a7 100644 --- a/VernissageWidget/Views/LargeWidgetView.swift +++ b/VernissageWidget/Views/LargeWidgetView.swift @@ -34,12 +34,12 @@ struct LargeWidgetView: View { .stroke(Color.white.opacity(0.6), lineWidth: 1) .frame(width: 24, height: 24) ) - .shadow(radius: 4) + .shadow(color: .black, radius: 2) Text(entry.displayName ?? "") .foregroundColor(.white) .fontWeight(.semibold) - .shadow(radius: 8) + .shadow(color: .black, radius: 2) Spacer() } .padding(.leading, 8) diff --git a/VernissageWidget/Views/MediumWidgetView.swift b/VernissageWidget/Views/MediumWidgetView.swift index 704ea90..b68aa4c 100644 --- a/VernissageWidget/Views/MediumWidgetView.swift +++ b/VernissageWidget/Views/MediumWidgetView.swift @@ -34,12 +34,12 @@ struct MediumWidgetView: View { .stroke(Color.white.opacity(0.6), lineWidth: 1) .frame(width: 24, height: 24) ) - .shadow(radius: 4) + .shadow(color: .black, radius: 2) Text(entry.displayName ?? "") .foregroundColor(.white) .fontWeight(.semibold) - .shadow(radius: 8) + .shadow(color: .black, radius: 2) Spacer() } .padding(.leading, 8) diff --git a/VernissageWidget/Views/SmallWidgetView.swift b/VernissageWidget/Views/SmallWidgetView.swift index b48a30b..9361a17 100644 --- a/VernissageWidget/Views/SmallWidgetView.swift +++ b/VernissageWidget/Views/SmallWidgetView.swift @@ -34,7 +34,7 @@ struct SmallWidgetView: View { .stroke(Color.white.opacity(0.6), lineWidth: 1) .frame(width: 16, height: 16) ) - .shadow(radius: 4) + .shadow(color: .black, radius: 2) Spacer() }