Browse Source

Commenting out 11.0 changes.

pull/92/head
Abhishek 4 years ago
parent
commit
c199201cb9
  1. 4
      Clocker/Onboarding/OnboardingParentViewController.swift
  2. 12
      Clocker/Overall App/Themer.swift
  3. 6
      Clocker/Panel/Notes Popover/NotesPopover.swift
  4. 10
      Clocker/Panel/ParentPanelController.swift

4
Clocker/Onboarding/OnboardingParentViewController.swift

@ -69,8 +69,8 @@ class OnboardingParentViewController: NSViewController {
[negativeButton, backButton].forEach { $0?.isHidden = true } [negativeButton, backButton].forEach { $0?.isHidden = true }
if #available(OSX 10.16, *) { if #available(OSX 10.16, *) {
negativeButton.controlSize = .large // negativeButton.controlSize = .large
positiveButton.controlSize = .large // positiveButton.controlSize = .large
backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill") backButton.image = Themer.shared().symbolImage(for: "chevron.left.circle.fill")
backButton.bezelStyle = .recessed backButton.bezelStyle = .recessed
backButton.isBordered = false backButton.isBordered = false

12
Clocker/Overall App/Themer.swift

@ -448,11 +448,13 @@ extension Themer {
func symbolImage(for name: String) -> NSImage { func symbolImage(for name: String) -> NSImage {
assert(name.count > 0) assert(name.count > 0)
if #available(OSX 10.16, *) {
return NSImage(systemSymbolName: name, accessibilityDescription: name)!
} else {
// Dummy image for older xcodes
return NSImage(named: NSImage.Name("Calendar Tab Icon"))! return NSImage(named: NSImage.Name("Calendar Tab Icon"))!
} // if #available(OSX 10.16, *) {
// return NSImage(systemSymbolName: name,
// accessibilityDescription: name)!
// } else {
// // Dummy image for older xcodes
// return NSImage(named: NSImage.Name("Calendar Tab Icon"))!
// }
} }
} }

6
Clocker/Panel/Notes Popover/NotesPopover.swift

@ -76,9 +76,9 @@ class NotesPopover: NSViewController {
alertPopupButton.setAccessibilityIdentifier("RemindersAlertPopup") alertPopupButton.setAccessibilityIdentifier("RemindersAlertPopup")
reminderView.setAccessibilityIdentifier("RemindersView") reminderView.setAccessibilityIdentifier("RemindersView")
if #available(macOS 10.16, *) { // if #available(macOS 10.16, *) {
alertPopupButton.controlSize = .large // alertPopupButton.controlSize = .large
} // }
} }
override func viewWillAppear() { override func viewWillAppear() {

10
Clocker/Panel/ParentPanelController.swift

@ -167,11 +167,11 @@ class ParentPanelController: NSWindowController {
showDebugVersionViewIfNeccesary() showDebugVersionViewIfNeccesary()
#if DEBUG // #if DEBUG
if #available(macOS 10.16, *) { // if #available(macOS 10.16, *) {
mainTableView.style = .fullWidth // mainTableView.style = .fullWidth
} // }
#endif // #endif
} }
private func showDebugVersionViewIfNeccesary() { private func showDebugVersionViewIfNeccesary() {

Loading…
Cancel
Save