Giter Club home page Giter Club logo

ewc's People

Contributors

23phy avatar dependabot[bot] 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ewc's Issues

Add this to electron, itself ๐Ÿ˜„

Just like electron has the vibrancy option for macOS, it should also have an acrylic option for Windows. This would be easier in making more fluent-enabled apps using electron.

A really cool use-case is in Hyper. You can make extensions for hyper which are simply glorified node modules.

Example from the verminal theme where it sets vibrancy!:
https://github.com/defringe/verminal/blob/master/index.js#L2

This could be setAcrylic ๐Ÿ˜Ž

You could make the argument that verminal could already use electron-acrylic, but it would require them to have all the dev requirements like python, and the C++ compiler. That's quite extensive for a theme for a terminal.

Having electron-acrylic as a part of electron gives it that 1st class experience!

Allow frame in BrowserWindow

Hi there,

LOVE this project! I was able to get your example going really quickly.

I was attempting to get this working in verminal which is a theme for hyper but hit a snag.

It looks like in your example:

    mainWindow = new BrowserWindow({
        height: 500,
        width: 800,
        transparent: true,
        frame: false
    });
    mainWindow.loadURL('file://' + __dirname + '/index.html');

    electronAcrylic.setAcrylic(mainWindow, 0xFFFFFF);

if you remove the frame: false the acrylic is no longer present ๐Ÿ˜ข
image

For reference, I was working off of:
https://github.com/electron/electron-quick-start

Node-gyp

Your project is awesome. But I have installed python 3 bcs I am a python developer too. Node-gyp is dying. Why you choosed this? This require python 2. Many alternative including by google.

Failure installing on macOS

I get errors when running npm run rebuild on macOS. I am aware this is not a macOS library, but I am writing a cross platform application and require this library as a dependency for Windows platforms.

image

Could you help me here?

Laggy dragging on 1903

Hi,

[Issue] Ewc is literally slow when dragging arcylic windows.
[Tried] 1. updated to electron@latest; 2. updated to windows-build tools 2019 with 18362 SDK.
[Request] If possible and willing,

  • any explanation on the machanism casusing such problem;
  • a more efficient module on dragging

Thanks for your efforts. :)

color format

Am I right in assuming the hex color being provided is 0xaabbggrr i.e. in the example 0x14800020 is #20008014?

I've been searching the undocumented documentations for SetWindowCompositionAttribute but couldn't find the info in the color/tint feild

"Couldn't find specified module."

(Note: I followed all steps.)
When I require the module and apply the .setAcrylic, it errors. The error seems to be a failed relative path that includes \\?\ before the actual path for some reason.

Error:
Error: Couldn't find specified module. \\?\C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\build\Release\ElectronAcrylic.node at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at bindings (C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\node_modules\bindings\bindings.js:84:48) at Object.<anonymous> (C:\Users\hinok\Workspace\Scar\node_modules\electron-acrylic\index.js:1:199)
image

A dll initialization routine failed

image

I get this error when I try to import ewc.node from build/Release

My electron version:
image

My edited build script:

node-gyp build --target=2.0.17 --runtime=electron --arch=ia32 --dist-url=https://atom.io/download/atom-shell

Update hoek to latest version to mitigate moderate vuln

A current dependency, hoek version 2.16.1, has a moderate level vulnerability (MAID exploit) listed in the CVE database, which extends to repositories which rely on electron-acrylic as a dependency.

hoek should be updated to at least version 5.0.3 to resolve this issue

Restrict Acrylic Area

Is it possible to set a region for the blur? I imagine blurring the entire window background an then painting over it could drain some batteries.

Error on installation

image

Is this caused by electron-acrylic? tried reinstalling phyton, etc, etc.. nothing worked out yet

Laggy acrylic

Hi, after launching example moving window with acrylic effect on causes huge lag for window

Problems with acrylic in battery saver mode

One possibly fixable issue with the acrylic effect is that, when Windows is in battery saver mode, changing to acrylic mode (ewc.setAcrylic) from any other transparency mode including blur behind and transparent gradient gives a broken, fully transparent window.

So enabling acrylic from a disabled state works, but if you set it to blur behind, and then to acrylic, it breaks and you just get a fully clear window.

This only happens in battery saver mode, probably because acrylic is meant to be globally disabled in this mode to save battery.

I don't know, but maybe this can be fixed, because you can get acrylic working in battery saver mode by disabling and re-enabling again, but this produces a flicker. I ran into this issue when solving the laggy drag issue by disabling acrylic on drag. Hopefully maybe it can be fixed because it is annoying the hell out of me!

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.