Bogdanp / racket-gui-easy

Declarative GUIs in Racket.
https://docs.racket-lang.org/gui-easy/index.html
134 stars 18 forks source link

dialog with `close-button` style has no close button #45

Closed otherjoel closed 8 months ago

otherjoel commented 1 year ago

Not sure if this is expected or what. The program in examples/modal.rkt sets the #:style of its dialog to '(close-button), but running it and clicking the button to render a dialog produces a dialog with no close button:

image

The only way to close the dialog is to press ESC.

Bogdanp commented 1 year ago

This is expected, though maybe the example should be updated. When run on its own, the dialog will have a close button, but when run as a modal dialog, it's displayed as a sheet on macOS so the close button style has no effect.