indragiek / INAppStoreWindow

NSWindow subclass with a highly customizable title bar and traffic lights
BSD 2-Clause "Simplified" License
1.06k stars 162 forks source link

Change red traffic light button when document is edited #155

Open jarek-foksa opened 10 years ago

jarek-foksa commented 10 years ago

When [window isDocumentEdited] returns YES then the red traffic light button should contain a small circle inside it.

indragiek commented 10 years ago

Are you seeing this with the default traffic light buttons or are you specifying custom images for them?

jarek-foksa commented 10 years ago

@indragiek I'm specifying custom images as demonstrated here: https://gist.github.com/jarek-foksa/10618949. If I find some free time next month I'll try to implement this feature.

indragiek commented 10 years ago

@jarek-foksa Yeah, this is pretty difficult to implement as an automatic thing because the red circle style may or may not work depending on what your traffic light images look like. IMO the best thing to do would be to add another image property to INWindowButton to be shown when the document is edited, so you can customize it to make it look the way you want.

jakepetroules commented 10 years ago

Yeah, I think an editedImage property on INWindowButton would make sense.