Giter VIP home page Giter VIP logo

Comments (7)

developit avatar developit commented on June 5, 2024

Doesn't Electron itself provide these and overlay them onto frameless apps?

from photon.

gsouf avatar gsouf commented on June 5, 2024

@developit I dont think so, or I didnt find this.

from photon.

parro-it avatar parro-it commented on June 5, 2024

I think it works only for OSX, using title-bar-style:hidden. AFAIK it doesn't work with frameless windows.

from photon.

connors avatar connors commented on June 5, 2024

I was trying to avoid reimplementing this but it might be unavoidable. Does anyone know for sure if this is completely broken in Windows?

I know in OSX, the "traffic lights" work automatically except when frameless windows are used.

from photon.

parro-it avatar parro-it commented on June 5, 2024

I don't know on windows. It does not work for sure in Lubuntu.

from photon.

gsouf avatar gsouf commented on June 5, 2024

@connors dont know if the term "broken" is the good one, but at least frameless windows are definitively not the same as the OSX onlytitle-bar-style:hidden.

Maybe that it can be good to implement this for anyone that would like to build a frameless windows with some additional control buttons ?
I mean, this is leighweight and functional, should be though, isn't it ?

from photon.

kevinmartin avatar kevinmartin commented on June 5, 2024

OS X has three types of frameless windows: frame: false, 'title-bar-style': 'hidden', and 'title-bar-style': 'hidden-inset'. All show the window without a border, shadow, frames, and title bar. While the first one also hides the traffic lights, the other two show them.

The difference between hidden and hidden-inset is that hidden-inset shows the traffic lights a little bit more inset (lower on the page) than hidden. This is useful for applications that have a thicker header (ie. Chrome). The other thing is that these two options only work on Yosemite (v10.10) and higher. They also produce some bugs that have yet to be fixed. Links below:

from photon.

Related Issues (20)

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.