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 |
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 | |
} | |
} | |
class ViewController: NSViewController { | |
let items = Array(0..<50).map { String($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 | |
} | |
} | |
class ViewController: NSViewController { | |
let items = Array(0..<3).map { String($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
class FlippedView: NSView { | |
override var isFlipped: Bool { | |
return true | |
} | |
} |
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 ViewController: NSViewController { | |
let items = Array(0..<30).map { String($0) } | |
private var scrollView: NSScrollView! | |
override func loadView() { | |
self.view = NSView(frame: NSRect(x: 0, y: 0, width: 400, height: 300)) | |
} |
NewerOlder