This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| private func stopScrolling(in view: UIView) { | |
| if let scrollView = view as? UIScrollView { | |
| scrollView.setContentOffset(scrollView.contentOffset, animated: false) | |
| } | |
| for subview in view.subviews { | |
| stopScrolling(in: subview) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class MainView: UIView { | |
| private let datePicker = UIDatePicker() | |
| private let resetTimeButton = UIButton(type: .system) | |
| private let date = Date() | |
| init() { | |
| super.init(frame: .zero) | |
| datePicker.preferredDatePickerStyle = .wheels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| import SwiftUI | |
| class WindowConfig { | |
| static let width: CGFloat = 659 | |
| static let height: CGFloat = 400 | |
| static let sidebarFixedWidth: CGFloat = 215 | |
| static let sideBarTopPadding: CGFloat = 43 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import KeyboardShortcuts | |
| import InputMethodKit | |
| let tabsPanelFadeOutAnimationDuration: Double = 0.25 | |
| Store.userDefaults.register( | |
| defaults: [ | |
| Store.isTabsSwitcherNeededToStayOpenStoreKey: Store.isTabsSwitcherNeededToStayOpenDefaultvalue | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| let tabHeight: CGFloat = 57 | |
| private let tabSpacing: CGFloat = 0 | |
| private let tabBottomPadding: CGFloat = 4 | |
| private let tabInsets = NSEdgeInsets(top: 0, left: 4, bottom: 0, right: 4) | |
| private let headerHeight: CGFloat = 73 | |
| let tabContentViewWidth = tabsPanelWidth - tabInsets.left - tabInsets.right |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final class TabItemView: NSView { | |
| let tab: Tab | |
| var onTabHover: ((Int) -> Void)? | |
| private var firstColumnLabel: NSTextField | |
| private var seconColumnLabel: NSTextField | |
| public var swipeActionViewCenterYAnchorConstraint = NSLayoutConstraint() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| class FlippedView: NSView { | |
| override var isFlipped: Bool { | |
| return true | |
| } | |
| } | |
| private class Spacer: NSView { | |
| var height: CGFloat = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| class FlippedView: NSView { | |
| override var isFlipped: Bool { | |
| return true | |
| } | |
| } | |
| private class Spacer: NSView { | |
| var height: CGFloat = 0 |
NewerOlder