From 6e755c84f34fef3b8fac348ee8f2efdc633d990c Mon Sep 17 00:00:00 2001 From: Svend Date: Fri, 11 Dec 2020 17:06:18 +0800 Subject: [PATCH 1/2] fix(History): Fix clear history button is not visible under Big Sur --- .../xcshareddata/xcschemes/uPic.xcscheme | 17 ----------------- uPic/AppDelegate.swift | 1 + .../Base.lproj/Preferences.storyboard | 8 ++++---- .../HistoryRecord/HistoryThumbnailView.swift | 4 ++-- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/uPic.xcodeproj/xcshareddata/xcschemes/uPic.xcscheme b/uPic.xcodeproj/xcshareddata/xcschemes/uPic.xcscheme index 0425b8c9..e4752a96 100644 --- a/uPic.xcodeproj/xcshareddata/xcschemes/uPic.xcscheme +++ b/uPic.xcodeproj/xcshareddata/xcschemes/uPic.xcscheme @@ -59,23 +59,6 @@ ReferencedContainer = "container:uPic.xcodeproj"> - - - - - - - - - - - + @@ -564,7 +564,7 @@ - + @@ -1484,10 +1484,10 @@ Gw - + - + diff --git a/uPic/Views/HistoryRecord/HistoryThumbnailView.swift b/uPic/Views/HistoryRecord/HistoryThumbnailView.swift index e312df25..6060a821 100644 --- a/uPic/Views/HistoryRecord/HistoryThumbnailView.swift +++ b/uPic/Views/HistoryRecord/HistoryThumbnailView.swift @@ -85,10 +85,10 @@ class HistoryThumbnailView: NSView { center.addObserver(self, selector: #selector(boundsDidChangeNotification(notification:)), name: NSView.boundsDidChangeNotification, object: mainScrollView.contentView) clearHistoryButton = NSButton(image: NSImage(named: "cleanButton")!, target: self, action: #selector(clearHistory)) - clearHistoryButton.appearance = NSAppearance(named: NSAppearance.Name.aqua) + clearHistoryButton.bezelStyle = .smallSquare + clearHistoryButton.isBordered = false clearHistoryButton.toolTip = "\("Clear history record".localized) \(historyList.count)" - clearHistoryButton.isTransparent = true addSubview(clearHistoryButton) preImageViewController = HistoryPreviewViewController() From c2bea618974603c2dbf11a40da04ee2da6bee206 Mon Sep 17 00:00:00 2001 From: Svend Date: Fri, 11 Dec 2020 17:07:12 +0800 Subject: [PATCH 2/2] fix(History): Fix clear history button is not visible under Big Sur --- uPic.xcodeproj/project.pbxproj | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/uPic.xcodeproj/project.pbxproj b/uPic.xcodeproj/project.pbxproj index 46533c09..a58f2826 100644 --- a/uPic.xcodeproj/project.pbxproj +++ b/uPic.xcodeproj/project.pbxproj @@ -1249,7 +1249,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 20201114; + CURRENT_PROJECT_VERSION = 20201211; DEVELOPMENT_TEAM = W863J6W8DZ; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/uPic/Supporting Files/Info.plist"; @@ -1258,7 +1258,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 0.21.0; + MARKETING_VERSION = 0.21.1; PRODUCT_BUNDLE_IDENTIFIER = com.svend.uPic; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1279,7 +1279,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 20201114; + CURRENT_PROJECT_VERSION = 20201211; DEVELOPMENT_TEAM = W863J6W8DZ; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/uPic/Supporting Files/Info.plist"; @@ -1288,7 +1288,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 0.21.0; + MARKETING_VERSION = 0.21.1; PRODUCT_BUNDLE_IDENTIFIER = com.svend.uPic; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1305,7 +1305,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 20201114; + CURRENT_PROJECT_VERSION = 20201211; DEVELOPMENT_TEAM = W863J6W8DZ; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = uPicFinderExtension/Info.plist; @@ -1315,7 +1315,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 0.21.0; + MARKETING_VERSION = 0.21.1; PRODUCT_BUNDLE_IDENTIFIER = com.svend.uPic.uPicFinderExtension; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1332,7 +1332,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 20201114; + CURRENT_PROJECT_VERSION = 20201211; DEVELOPMENT_TEAM = W863J6W8DZ; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = uPicFinderExtension/Info.plist; @@ -1342,7 +1342,7 @@ "@executable_path/../../../../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 0.21.0; + MARKETING_VERSION = 0.21.1; PRODUCT_BUNDLE_IDENTIFIER = com.svend.uPic.uPicFinderExtension; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = "";