Skip to content

Instantly share code, notes, and snippets.

@gnachman
Created February 24, 2026 18:05
Show Gist options
  • Select an option

  • Save gnachman/f62966d00c9a0df487b1e253fd3afd9d to your computer and use it in GitHub Desktop.

Select an option

Save gnachman/f62966d00c9a0df487b1e253fd3afd9d to your computer and use it in GitHub Desktop.
diff --git i/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.h w/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.h
index 25a866692..971972f74 100644
--- i/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.h
+++ w/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.h
@@ -22,7 +22,7 @@
@end
-NS_AVAILABLE_MAC(26)
+//NS_AVAILABLE_MAC(26)
@interface PSMTahoeRolloverButton: PSMRolloverButton
- (instancetype)initWithSymbolName:(NSString *)name;
diff --git i/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.m w/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.m
index 17635cbab..30c30f446 100644
--- i/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.m
+++ w/ThirdParty/PSMTabBarControl/source/PSMRolloverButton.m
@@ -216,7 +216,7 @@ int DebugLogImpl(const char *file, int line, const char *function, NSString* val
@end
-NS_AVAILABLE_MAC(26)
+//NS_AVAILABLE_MAC(26)
@implementation PSMTahoeRolloverButton
- (instancetype)initWithSymbolName:(NSString *)name {
@@ -232,8 +232,8 @@ NS_AVAILABLE_MAC(26)
// New Tahoe (macOS 26) look:
self.controlSize = NSControlSizeLarge;
- self.bezelStyle = NSBezelStyleGlass; // Liquid Glass bezel
- self.borderShape = NSControlBorderShapeCircle; // round/capsule shape
+// self.bezelStyle = NSBezelStyleGlass; // Liquid Glass bezel
+// self.borderShape = NSControlBorderShapeCircle; // round/capsule shape
self.bordered = YES;
self.showsBorderOnlyWhileMouseInside = NO;
}
diff --git i/ThirdParty/PSMTabBarControl/source/PSMTahoeTabStyle.swift w/ThirdParty/PSMTabBarControl/source/PSMTahoeTabStyle.swift
index eb5ab57c2..157ff9e47 100644
--- i/ThirdParty/PSMTabBarControl/source/PSMTahoeTabStyle.swift
+++ w/ThirdParty/PSMTabBarControl/source/PSMTahoeTabStyle.swift
@@ -13,7 +13,7 @@ fileprivate let kPSMMetalCounterMinWidth: CGFloat = 20
fileprivate let PSMTahoeTabStyleDebuggingEnabled: Bool = false
@objc
-@available(macOS 26, *)
+//@available(macOS 26, *)
class PSMTahoeTabStyle: NSObject, PSMTabStyle {
// MARK: - Private Properties
@@ -1628,7 +1628,7 @@ private func DLog(_ message: String) {
#endif
}
-@available(macOS 26, *)
+//@available(macOS 26, *)
extension PSMTahoeTabStyle.LayoutableObject {
var minimumSize: CGFloat {
switch sizingMode {
@@ -1649,7 +1649,7 @@ extension PSMTahoeTabStyle.LayoutableObject {
}
}
-@available(macOS 26, *)
+//@available(macOS 26, *)
class PSMTahoeDarkTabStyle: PSMTahoeTabStyle {
@objc
override var tabBarColor: NSColor {
@@ -1763,7 +1763,7 @@ class PSMTahoeDarkTabStyle: PSMTahoeTabStyle {
}
}
-@available(macOS 26, *)
+//@available(macOS 26, *)
class PSMTahoeOverflowButton: NSButton {
init() {
super.init(frame: .zero)
@@ -1773,8 +1773,8 @@ class PSMTahoeOverflowButton: NSButton {
imagePosition = .imageOnly
imageScaling = .scaleProportionallyDown
contentTintColor = .labelColor
- bezelStyle = .glass
- borderShape = .circle
+// bezelStyle = .glass
+// borderShape = .circle
isBordered = true
showsBorderOnlyWhileMouseInside = false
frame = frame
@@ -1797,7 +1797,7 @@ class PSMTahoeOverflowButton: NSButton {
}
}
-@available(macOS 26, *)
+//@available(macOS 26, *)
class PSMTahoeDarkHighContrastTabStyle: PSMTahoeDarkTabStyle {
@objc
override var tabBarColor: NSColor {
@@ -1897,7 +1897,7 @@ class PSMTahoeDarkHighContrastTabStyle: PSMTahoeDarkTabStyle {
}
-@available(macOS 26, *)
+//@available(macOS 26, *)
class PSMTahoeLightHighContrastTabStyle: PSMTahoeTabStyle {
override class var xmarkSymbolConfiguration: NSImage.SymbolConfiguration {
return super.xmarkSymbolConfiguration.applying(.init(paletteColors: [.black]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment