Giter VIP home page Giter VIP logo

Comments (6)

feross avatar feross commented on May 13, 2024

I actually don't think this is so bad. I know that Quicktime automatically hides the header (including traffic lights) when the video is playing, but it's harder to do this with Electron.

You can either get a window with native OS buttons, or a completely "frameless" window. You can read about Electron frameless windows.

You can't change the type of window once it's created. I opened an issue to see if the developers could allow setting the frame option dynamically but it was closed: electron/electron#4652

So, the only way to fix this right now would be to use a frameless window and create our own traffic light buttons in CSS and try to make them match the native buttons as closely as possible. This is what Playback does, but it's a bit janky. When Apple released a new OS, we have to manually change the buttons or they will look wrong. And when we do, all the users on old OSs will suddenly see traffic light buttons from an OS they haven't upgraded to yet.

No easy solution here.

from webtorrent-desktop.

ChrisMorrisOrg avatar ChrisMorrisOrg commented on May 13, 2024

Bummer, that's hugely annoying. The solution seems like a lot of work for such a minor change, but at the same time, I really hate overlays when watching videos - it feels similar to when those annoying adverts pop up when you're watching a TV show.

I'm wondering if I should look at Electron itself and see if I can add something to allow for this option.

from webtorrent-desktop.

ChrisMorrisOrg avatar ChrisMorrisOrg commented on May 13, 2024

QuickTime seems to hide the entire titlebar, not purely the traffic light controls. This might mean that we'd have to use the built-in OS X titlebar. Hmm, maybe it's not worth it.

from webtorrent-desktop.

feross avatar feross commented on May 13, 2024

@ChrisMorrisOrg QuickTime seems to hide the entire titlebar, not purely the traffic light controls. This might mean that we'd have to use the built-in OS X titlebar

Even then, I don't think Electron has an API for changing the frame option after a window has been constructed :(

from webtorrent-desktop.

ChrisMorrisOrg avatar ChrisMorrisOrg commented on May 13, 2024

@feross Even then, I don't think Electron has an API for changing the frame option after a window has been constructed :(

Yeah, it seems like too much of a hassle. I've asked a few friends what they thought about the app, and they didn't seem overly concerned about the traffic lights. Maybe it's not worth worrying about at this point in time.

from webtorrent-desktop.

feross avatar feross commented on May 13, 2024

Okay, sounds good to me.

from webtorrent-desktop.

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.