defano / wyldcard

A clone of Apple's HyperCard and HyperTalk scripting language.
https://github.com/defano/wyldcard/wiki
MIT License
117 stars 12 forks source link

Visual Background mode indicator missing #92

Closed ooper-zz closed 2 years ago

ooper-zz commented 2 years ago

Given a user is in card mode When an Edit/Background menu item is chosen Then the stack background should display a visual indication of being in the background mode. The orig. HC had a patterned outline of the menubar.

Conversely, Given a user is in background mode When an Edit/Background menu item is chosen Then the stack background should hide the visual background mode indicator as described above

defano commented 2 years ago

Hi @ooper-zz ,

Agreed—

HyperCard solved this problem by adding a decoration to the menu bar. Unfortunately, Swing does not provide this capability (as far as I've been able to tell). As an inexpensive workaround, I add the string (Background) to the card window's name to denote the user is editing the background.

Any suggestions of how to denote background editing, short of adding the patterned indicator to the menu bar?

ooper-zz commented 2 years ago

I think one would probably have to drop down to the awt peer classes in all platforms to do this, which is impractical for this purpose. I think a pattern around the window title should give us the desired effect for now and will work the same cross-platform, like yay: bkgd-indicator-hack

If you are ok, I'll submit a pull request later on and move on to bigger things.

ooper-zz commented 2 years ago

I went ahead and submitted a Pull Request for your review. Thanks

defano commented 2 years ago

Accepted and merged; closing.