Giter Club home page Giter Club logo

Comments (6)

NyaomiDEV avatar NyaomiDEV commented on May 18, 2024

ok but is this on master branch?
Also, from Electron's docs:

Please note that using frame: false in combination with a vibrancy value requires that you use a non-default titleBarStyle as well

from glasstron.

Eugeny avatar Eugeny commented on May 18, 2024

Yep - master. Looks like an array gets passed to setVibrancy here: 424075d#diff-748ec3715bf7cb233256e7732e80a644d9e75e74a5080942e33ff3cd7e5afe8cR81 and also _vibrancy[1] is always null if you only use setVibrancy without setBlur

from glasstron.

NyaomiDEV avatar NyaomiDEV commented on May 18, 2024

Yep - master. Looks like an array gets passed to setVibrancy here: 424075d#diff-748ec3715bf7cb233256e7732e80a644d9e75e74a5080942e33ff3cd7e5afe8cR81 and also _vibrancy[1] is always null if you only use setVibrancy without setBlur

I was trying to wrap Electron's setVibrancy so that I can also provide a global switch with setBlur and a way to get the vibrancy value back. Not really needed as you know but I want them there. I still lack a Mac to test my approach and maybe there's a bug I never dug up just by looking at the code.

In Glasstron's realm, you toggle the blur via setBlur() and vibrancy is just a property like blurType is on Windows

from glasstron.

NyaomiDEV avatar NyaomiDEV commented on May 18, 2024

Does it work as intended in 0.0.6?

from glasstron.

Eugeny avatar Eugeny commented on May 18, 2024

No. In platforms/darwin.js, _vibrancy[1] is used to actually set vibrancy, but it's always null. You probably should check vibrancy[0] here: https://github.com/AryToNeX/Glasstron/blob/master/src/platforms/darwin.js#L75

from glasstron.

NyaomiDEV avatar NyaomiDEV commented on May 18, 2024

Can you test it and make a pull request? I am with you on that one thing, but I got really no time to make the change myself lately.

from glasstron.

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.