From 6b6365ce2888de90c91fe532d6b22c018f172ea5 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 23 Oct 2021 16:45:55 +0200 Subject: [PATCH] feat: removed OpenCollective from sponsorship options --- .github/FUNDING.yml | 3 +-- .../open_collective.imageset/Contents.json | 21 ------------------ .../open_collective.png | Bin 1883 -> 0 bytes Stats/Supporting Files/Info.plist | 2 +- Stats/Views/Settings.swift | 7 +----- 5 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/Contents.json delete mode 100644 Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/open_collective.png diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index cd48ee4b..0ecc16dc 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,4 @@ github: [exelban] patreon: exelban ko_fi: exelban -custom: ["https://www.paypal.com/donate?hosted_button_id=3DS5JHDBATMTC"] -open_collective: stats \ No newline at end of file +custom: ["https://www.paypal.com/donate?hosted_button_id=3DS5JHDBATMTC"] \ No newline at end of file diff --git a/Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/Contents.json b/Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/Contents.json deleted file mode 100644 index 24074bb1..00000000 --- a/Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/Contents.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "images" : [ - { - "filename" : "open_collective.png", - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/open_collective.png b/Stats/Supporting Files/Assets.xcassets/support/open_collective.imageset/open_collective.png deleted file mode 100644 index dd5a20812fec9d9a5d38e635de1347834b7b4609..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001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ny?*r9Lkt)B5>yW4mtjWn5}F8$%EiHF_<)fBo6`+}VSDnSn@N z=$`&Jm-1QaUJ-jezP((NS6EEL*q6Gt7a|@n=tKq~r=#Rm(v6MA6uo(Py@ojUp^WJ` zLvN2$yTbCJ`LC8Q7P6z+>$EP)sjdTEEx*_v(l40$NBLsRH-w2io8GwDd{QcBZOTzN yeCLxS`bjynXvK7@tIRg#dp=6)N5ET36X$VawD*Ixd>UKvhjBjX=1^-Noc3Q+-vZYF diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 1d040176..77ff0484 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 314 + 315 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Stats/Views/Settings.swift b/Stats/Views/Settings.swift index 097be7da..dc7c9cd7 100644 --- a/Stats/Views/Settings.swift +++ b/Stats/Views/Settings.swift @@ -278,7 +278,7 @@ private class SettingsView: NSView { private func supportView() -> NSViewController { let vc: NSViewController = NSViewController(nibName: nil, bundle: nil) - let view: NSStackView = NSStackView(frame: NSRect(x: 0, y: 0, width: 200, height: 40)) + let view: NSStackView = NSStackView(frame: NSRect(x: 0, y: 0, width: 160, height: 40)) view.spacing = 0 view.orientation = .horizontal @@ -286,7 +286,6 @@ private class SettingsView: NSView { view.addArrangedSubview(supportButton(name: "PayPal", image: "paypal", action: #selector(self.openPaypal))) view.addArrangedSubview(supportButton(name: "Ko-fi", image: "ko-fi", action: #selector(self.openKofi))) view.addArrangedSubview(supportButton(name: "Patreon", image: "patreon", action: #selector(self.openPatreon))) - view.addArrangedSubview(supportButton(name: "Open Collective", image: "open_collective", action: #selector(self.openOpencollective))) vc.view = view return vc @@ -339,10 +338,6 @@ private class SettingsView: NSView { NSWorkspace.shared.open(URL(string: "https://patreon.com/exelban")!) } - @objc private func openOpencollective(_ sender: NSButton) { - NSWorkspace.shared.open(URL(string: "https://opencollective.com/stats")!) - } - @objc private func closeApp(_ sender: Any) { NSApp.terminate(sender) }