Skip to content

Commit 83d90bc

Browse files
committed
Fix missing Tahoe dividers when there are 3 tabs or in dark mode
1 parent f48329b commit 83d90bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ThirdParty/PSMTabBarControl/source/PSMTahoeTabStyle.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class PSMTahoeTabStyle: NSObject, PSMTabStyle {
633633
if leftCell.isHighlighted || rightCell.isHighlighted || leftCell.state == .on || rightCell.state == .on {
634634
return
635635
}
636-
guard let cells = tabBar?.cells() as? [PSMTabBarCell], cells.count >= 4 else {
636+
guard let cells = tabBar?.cells() as? [PSMTabBarCell], cells.count >= 3 else {
637637
return
638638
}
639639
dividerColor.set()
@@ -1712,8 +1712,8 @@ class PSMTahoeDarkTabStyle: PSMTahoeTabStyle {
17121712
Bundle(for: PSMTahoeTabStyle.self).image(forResource: "TahoeDarkMidTab")!
17131713
}()
17141714

1715-
override func reallyDrawDivider(rect: NSRect) {
1716-
rect.fill(using: .clear)
1715+
override var dividerColor: NSColor {
1716+
NSColor(displayP3Red: 0.271, green: 0.292, blue: 0.301, alpha: 1.0)
17171717
}
17181718

17191719
override func useLightControls() -> Bool {

0 commit comments

Comments
 (0)