From 156441759ea718fe166c4926aa77a8febbdc09d3 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Tue, 29 Mar 2022 19:13:01 -0400 Subject: [PATCH] Removing Add Image highlighted icon. --- Clocker/Clocker/en.lproj/Panel.xib | 9 ++++----- Clocker/ClockerUnitTests/ThemerTests.swift | 7 ------- Clocker/Overall App/Themer.swift | 4 ---- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Clocker/Clocker/en.lproj/Panel.xib b/Clocker/Clocker/en.lproj/Panel.xib index faa34c1..8f797bf 100755 --- a/Clocker/Clocker/en.lproj/Panel.xib +++ b/Clocker/Clocker/en.lproj/Panel.xib @@ -1,8 +1,8 @@ - + - + @@ -43,7 +43,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -674,7 +674,6 @@ - diff --git a/Clocker/ClockerUnitTests/ThemerTests.swift b/Clocker/ClockerUnitTests/ThemerTests.swift index 81c1d65..b295f4d 100644 --- a/Clocker/ClockerUnitTests/ThemerTests.swift +++ b/Clocker/ClockerUnitTests/ThemerTests.swift @@ -27,7 +27,6 @@ class ThemerTests: XCTestCase { let expectedSharingImage: String let expectedCurrentLocationImage: String let expectedAddImage: String - let expectedAddImageHighlighted: String let expectedPrivacyTabImage: String let expectedAppearanceTabImage: String let expectedCalendarTabImage: String @@ -74,7 +73,6 @@ class ThemerTests: XCTestCase { expectedSharingImage: "square.and.arrow.up.on.square.fill", expectedCurrentLocationImage: "location.fill", expectedAddImage: "plus", - expectedAddImageHighlighted: "Add Highlighted", expectedPrivacyTabImage: "lock", expectedAppearanceTabImage: "eye", expectedCalendarTabImage: "calendar", @@ -108,7 +106,6 @@ class ThemerTests: XCTestCase { expectedSharingImage: "square.and.arrow.up.on.square.fill", expectedCurrentLocationImage: "location.fill", expectedAddImage: "plus", - expectedAddImageHighlighted: "Add White", expectedPrivacyTabImage: "lock", expectedAppearanceTabImage: "eye", expectedCalendarTabImage: "calendar", @@ -150,7 +147,6 @@ class ThemerTests: XCTestCase { expectedSharingImage: "square.and.arrow.up.on.square.fill", expectedCurrentLocationImage: "location.fill", expectedAddImage: "plus", - expectedAddImageHighlighted: "Add White", expectedPrivacyTabImage: "lock", expectedAppearanceTabImage: "eye", expectedCalendarTabImage: "calendar", @@ -185,7 +181,6 @@ class ThemerTests: XCTestCase { expectedSharingImage: "square.and.arrow.up.on.square.fill", expectedCurrentLocationImage: "location.fill", expectedAddImage: "plus", - expectedAddImageHighlighted: "Add White", expectedPrivacyTabImage: "lock", expectedAppearanceTabImage: "eye", expectedCalendarTabImage: "calendar", @@ -219,7 +214,6 @@ class ThemerTests: XCTestCase { expectedSharingImage: "square.and.arrow.up.on.square.fill", expectedCurrentLocationImage: "location.fill", expectedAddImage: "plus", - expectedAddImageHighlighted: "Add White", expectedPrivacyTabImage: "lock", expectedAppearanceTabImage: "eye", expectedCalendarTabImage: "calendar", @@ -252,7 +246,6 @@ class ThemerTests: XCTestCase { XCTAssertEqual(subject.currentLocationImage().accessibilityDescription, expectations.expectedCurrentLocationImage) XCTAssertEqual(subject.popoverAppearance(), expectations.expectedPopoverApperarance) XCTAssertEqual(subject.addImage().accessibilityDescription, expectations.expectedAddImage) - XCTAssertEqual(subject.addImageHighlighted().name(), expectations.expectedAddImageHighlighted) XCTAssertEqual(subject.privacyTabImage().accessibilityDescription, expectations.expectedPrivacyTabImage) XCTAssertEqual(subject.appearanceTabImage().accessibilityDescription, expectations.expectedAppearanceTabImage) XCTAssertEqual(subject.calendarTabImage().accessibilityDescription, expectations.expectedCalendarTabImage) diff --git a/Clocker/Overall App/Themer.swift b/Clocker/Overall App/Themer.swift index 26a403e..c478d53 100644 --- a/Clocker/Overall App/Themer.swift +++ b/Clocker/Overall App/Themer.swift @@ -329,10 +329,6 @@ extension Themer { NSImage(named: NSImage.Name("Add White"))!) } - func addImageHighlighted() -> NSImage { - return themeIndex == .light ? NSImage(named: NSImage.Name("Add Highlighted"))! : NSImage(named: NSImage.Name("Add White"))! - } - func privacyTabImage() -> NSImage { if let privacyTabSFImage = symbolImage(for: "lock") { return privacyTabSFImage