Skip to content

Customizing Electron’s window title look on OS X #2734

Closed

Description

@lipis

It looks like with a simple patch it would be possible to have the window controls on a framless window and going from this:

electron_default

to this:

electron_trafficlights

Would it make sense to include that in the core BrowserWindow and have that as an option for the users?

(Obviously we'll have to make sure how will it work on other platforms and all but @jaanus is willing to take the challenge 👯 🌵 🐎)

Activity

  1. herrmannplatz commented on Sep 8, 2015

    @herrmannplatz
    Contributor

    would be awesome

  2. hakonbo commented on Sep 8, 2015

    @hakonbo

    👍

  3. raphaelrobert commented on Sep 8, 2015

    @raphaelrobert

    +1

  4. topless commented on Sep 8, 2015

    @topless

    +1

  5. markesaaremets commented on Sep 8, 2015

    @markesaaremets

    +1

  6. georgekis commented on Sep 8, 2015

    @georgekis

    +1

  7. helenakos commented on Sep 8, 2015

    @helenakos

    +1 ⬆️

  8. teller commented on Sep 8, 2015

    @teller

    +1

  9. winterDroid commented on Sep 8, 2015

    @winterDroid

    👍

  10. olivereitalu commented on Sep 8, 2015

    @olivereitalu

    👍

  11. AndroidBob commented on Sep 8, 2015

    @AndroidBob

    👍 x 💯

  12. gregor commented on Sep 8, 2015

    @gregor

    👍

  13. flipace commented on Sep 8, 2015

    @flipace

    👍

  14. meyskens commented on Sep 8, 2015

    @meyskens

    +99

  15. cristobalcastilla commented on Sep 8, 2015

    @cristobalcastilla

    +1

  16. 3 remaining items

  17. priiduzilmer commented on Sep 8, 2015

    @priiduzilmer

    +1

  18. jenskasemets commented on Sep 8, 2015

    @jenskasemets

    +1 and some more

  19. etiktin commented on Sep 8, 2015

    @etiktin
    Contributor

    According to the post this only works in Yosemite and above. So if you have users that are using earlier versions, you'll need to provide a fallback. If that's the case I would go with something like the titlebar module.

  20. lipis commented on Sep 9, 2015

    @lipis
    Author

    The post is just a patch and proof of concept, if it will be included in Electron then it will behave normally (without hiding the title bar) on older systems without using the titlebar module. If anyone would like to support older systems I guess titlebar would be needed or a combination, but it shouldn't be part of the core.

  21. zcbenz commented on Sep 10, 2015

    @zcbenz
    Contributor

    That patch is awesome! I think we can provide an option for Yosemite and above.

  22. lipis commented on Sep 10, 2015

    @lipis
    Author

    @jaanus Now it's your move 💃 👯 ✌️

  23. sindresorhus commented on Sep 11, 2015

    @sindresorhus
    Contributor

    👍 This would make it a lot easier to build more custom UI's with Electron. Currently, I'm using CSS to emulate the traffic lights, but it's super hacky and I'll be stuck having to upgrade them every time the OS X UI changes.

  24. lipis commented on Sep 14, 2015

    @lipis
    Author

    Woho!!

  25. herrmannplatz commented on Sep 14, 2015

    @herrmannplatz
    Contributor

    awesome!

  26. added a commit that references this issue on Sep 14, 2015
  27. zcbenz commented on Sep 14, 2015

    @zcbenz
    Contributor

    Closed by #2776.

  28. sindresorhus commented on Sep 16, 2015

    @sindresorhus
    Contributor

    I just published an app that uses the new API. Looks really good. Thank you @jaanus! :)

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions