GithubHelp home page GithubHelp logo

insidegui / grcustomizablewindow Goto Github PK

View Code? Open in Web Editor NEW
103.0 5.0 18.0 599 KB

NSWindow subclass with support to custom titlebar height, background color and title color

License: BSD 2-Clause "Simplified" License

Objective-C 100.00%

grcustomizablewindow's Introduction

This project is not under active development anymore.

There are better ways to customize windows on modern macOS (using full size content view or customizing the titlebar view).

GRCustomizableWindow

NSWindow subclass with support to custom titlebar height, background color and title color

Screenshots

screenshot screenshot screenshot screenshot

Contributing

You can contribute with code, just send me a pull request, or open an issue for any bug/enhancement.

Disclaimer: sending a pull request does not mean I will accept It, if I don't accept your pull request It doesn't mean I don't love you ;)

If you like this and will use It to make your app look funny, you can show me some love by donating through PayPal

grcustomizablewindow's People

Contributors

insidegui avatar oleksandryolkin avatar torinkwok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grcustomizablewindow's Issues

Please provide a way to hide/show window title bar

Hi, excellent code, thanks a lot for this. Would it be possible to add an easy way to properly show/hide window title bar, potentially with a fade in/out animation the same way FaceTime on Mac does it?

I have tried setting titleBarHeight to 0 and it works nicely except couple of things.

1/ Window frame looses rounded corners (please see screenshots below)
2/ There is no easy way to animate it

I'd be happy to send in pull request if you give me some guidance as to how it should be properly implemented, I'm a bit lost in the whole theme frame things....

Also, would this be Mac AppStore safe?

thanks,
Martin

grcustomizablewindow demo

grcustomizablewindow demo

Doesn't work well on Yosemite

Yosemite changed the way windows are drawn, so the custom drawing doesn't look right, especially the title bar part.

captura de tela 2014-09-15 as 11 09 11

Similar projects for Windows/Linux(GTK)?

Hey!

This is one very great subclass of NSWindow that I really like - which will make me use it in some future projects.
But as my app is cross-platform, I was just wanting to ask if oyu know of similar possibilities for Windows, or GTK?

Kind regards,
Ingwie!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.