diff --git a/MTMR/CustomButtonTouchBarItem.swift b/MTMR/CustomButtonTouchBarItem.swift index dd22d50..300e8fe 100644 --- a/MTMR/CustomButtonTouchBarItem.swift +++ b/MTMR/CustomButtonTouchBarItem.swift @@ -101,6 +101,8 @@ class CustomButtonCell: NSButtonCell { override func highlight(_ flag: Bool, withFrame cellFrame: NSRect, in controlView: NSView) { if flag { self.isBordered = true + } else { + self.isBordered = false } super.highlight(flag, withFrame: cellFrame, in: controlView) } diff --git a/MTMR/ScrollViewItem.swift b/MTMR/ScrollViewItem.swift index 850039b..c4fc12c 100644 --- a/MTMR/ScrollViewItem.swift +++ b/MTMR/ScrollViewItem.swift @@ -10,7 +10,7 @@ class ScrollViewItem: NSCustomTouchBarItem { stackView.orientation = .horizontal let scrollView = NSScrollView(frame: CGRect(origin: .zero, size: stackView.fittingSize)) scrollView.documentView = stackView - scrollView.documentView?.bounds.origin = CGPoint(x: 0.0, y: -2.5) +// scrollView.documentView?.bounds.origin = CGPoint(x: 0.0, y: -2.5) self.view = scrollView }