indragiek / INAppStoreWindow

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

Full window custom drawing #105

Closed avaidyam closed 11 years ago

avaidyam commented 11 years ago

How would I go about styling the whole window's body? Is that even possible using just INAppStoreWindow?

indragiek commented 11 years ago

Use INAppStoreWindow to draw your titlebar and add a subview to the content view to draw the content background. That would cover everything.

avaidyam commented 11 years ago

Oh, this would make sense, but I'm trying to reproduce a HUD window, so wouldn't this break?

indragiek commented 11 years ago

If you want an HUD window with transparency you'll need to create a borderless, transparent NSWindow so you can't use INAppStoreWindow.— Indragie Karunaratne

On Mon, May 13, 2013 at 9:44 AM, galaxas0 notifications@github.com wrote:

Oh, this would make sense, but I'm trying to reproduce a HUD window, so wouldn't this break? On Monday, May 13, 2013, Indragie Karunaratne wrote:

Use INAppStoreWindow to draw your titlebar and add a subview to the content view to draw the content background. That would cover everything.

— Reply to this email directly or view it on GitHubhttps://github.com/indragiek/INAppStoreWindow/issues/105#issuecomment-17820430 .

Aditya.

Reply to this email directly or view it on GitHub: https://github.com/indragiek/INAppStoreWindow/issues/105#issuecomment-17824225

jwilling commented 11 years ago

@galaxas0 You cannot use INAppStoreWindow to create an HUD window. Try this, perhaps.

avaidyam commented 11 years ago

That was precisely my thought, but I love what INAppStoreWindow offers. Oh well!

jwilling commented 11 years ago

The main idea behind INAppStoreWindow is to provide some way to extend the existing titlebar and add content to it.

If you don't want to go borderless you can always swizzle the drawing of the theme frame, which will effectively give you a completely transparent window.

avaidyam commented 11 years ago

I didn't want to go that route, but I guess I must.