swiftDialog icon indicating copy to clipboard operation
swiftDialog copied to clipboard

Dialog 3.0 - Dark mode disabled buttons look clickable

Open BigMacAdmin opened this issue 4 months ago • 2 comments

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

  1. Install the latest SwiftDialog beta 3.0
  2. Install macOS 26+
  3. Enable Dark Mode
  4. 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

Image Image

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.

BigMacAdmin avatar Nov 03 '25 03:11 BigMacAdmin

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)
    }
}
Image Image

bartreardon avatar Nov 03 '25 04:11 bartreardon

Raised as FB20903697

In the meantime I can work around this by forcing the text foreground style

Image Image

bartreardon avatar Nov 03 '25 05:11 bartreardon