Dialog 3.0 - Dark mode disabled buttons look clickable
Describe the bug In Dialog 3.0 - Dark mode disabled buttons look clickable. I know this came up on Slack previously, I believe you mentioned that this is Apple's doing and not yours, but figured I'd open an issue to see if that recollection is correct.
To Reproduce
- Install the latest SwiftDialog beta 3.0
- Install macOS 26+
- Enable Dark Mode
- Run this command
/usr/local/bin/dialog --button1disabled --title "Dark Mode $(/usr/local/bin/dialog --version)" --message 'That button looks clickable :(' --button1text 'Not clickable :('
Expected behavior in Dialog 2.5.6 the button would be grey, not dark blue
Screenshots
Desktop (please complete the following information):
- macOS version 26.0.1
- swiftDialog version
3.0.0-4916
Additional context Add any other context about the problem here.
That looks like a macOS "lack of contrast" issue - in light mode disabled buttons look disabled. Also the disabled button is rendered differently than active buttons but this isn't something that swiftDialog itself is managing.
Example swiftUI view:
struct ContentView: View {
var body: some View {
// Enabled Button
Button(action: {}, label: {
Text("Enabled")
})
.keyboardShortcut(.defaultAction)
// Disabled Button
Button(action: {}, label: {
Text("Disabled")
})
.disabled(true)
.keyboardShortcut(.defaultAction)
}
}
Raised as FB20903697
In the meantime I can work around this by forcing the text foreground style