Browse Source

Accessibility!

pull/92/head
Abhishek 5 years ago
parent
commit
77d409fa1b
  1. 2
      Clocker/Onboarding/OnboardingParentViewController.swift
  2. 8
      Clocker/Overall App/Themer.swift
  3. 2
      Clocker/Panel/UI/TimezoneDataSource.swift

2
Clocker/Onboarding/OnboardingParentViewController.swift

@ -72,7 +72,7 @@ class OnboardingParentViewController: NSViewController {
negativeButton.controlSize = .large
positiveButton.controlSize = .large
backButton.image = NSImage(systemSymbolName: "chevron.left.circle.fill",
accessibilityDescription: nil)
accessibilityDescription: "back-button")
} else {
backButton.title = NSLocalizedString("Back",
comment: "Button title for going back to the previous screen")

8
Clocker/Overall App/Themer.swift

@ -153,7 +153,7 @@ extension Themer {
func shutdownImage() -> NSImage {
if #available(macOS 10.16, *) {
return NSImage(systemSymbolName: "ellipsis.circle",
accessibilityDescription: nil)!
accessibilityDescription: "power-down-image")!
}
if #available(macOS 10.14, *) {
@ -173,7 +173,7 @@ extension Themer {
func preferenceImage() -> NSImage {
if #available(macOS 10.16, *) {
return NSImage(systemSymbolName: "gear",
accessibilityDescription: nil)!
accessibilityDescription: "new-preference-image")!
}
if #available(macOS 10.14, *) {
@ -196,7 +196,7 @@ extension Themer {
func pinImage() -> NSImage {
if #available(macOS 10.16, *) {
return NSImage(systemSymbolName: "macwindow.on.rectangle",
accessibilityDescription: nil)!
accessibilityDescription: "pin-image")!
}
if #available(macOS 10.14, *) {
@ -321,7 +321,7 @@ extension Themer {
func sharingImage() -> NSImage {
if #available(macOS 10.16, *) {
return NSImage(systemSymbolName: "square.and.arrow.up.on.square.fill",
accessibilityDescription: nil)!
accessibilityDescription: "share-button")!
}
if #available(macOS 10.14, *) {

2
Clocker/Panel/UI/TimezoneDataSource.swift

@ -136,7 +136,7 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
if #available(OSX 10.16, *) {
swipeToDelete.image = NSImage(systemSymbolName: "trash.fill",
accessibilityDescription: nil)
accessibilityDescription: "swipe-to-delete")
} else {
swipeToDelete.image = NSImage(named: NSImage.Name("Trash"))
}

Loading…
Cancel
Save