hyper: Transparency not working on Windows 10
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- Windows 10:
- 1.3.1:
- The issue is reproducible in vanilla Hyper.app:
Issue
I am unable to get transparency working on Hyper 1.31 on Windows 10. I have tried a few plugins, none of which worked, and changing my backgroundColor to backgroundColor: 'rgba(0,0,0,0.5)'. Is there anything else that I can try? My hyper.js is currently back to default config.
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 28 (6 by maintainers)
This can be solved using
browserWindow.setOpacity(electron doc). It is compatible with Windows and MacOS.I made a plugin for that : hyper-opacity š
If youāre feeling adventurous, I have found that you can enable transparency in Hyper 1.3.1 on Windows 10 by setting
frame: process.platform === 'darwin',toframe: false,andtransparent: process.platform === 'darwin',totransparent: true,inC:\Users\<username>\AppData\Local\hyper\app-1.3.1\resources\app\index.js. Looks like they only wanted this to work on OSX, and probably for a good reason, so use at your own risk I guess.Looks like itās not going to be supported š https://github.com/electron/electron/issues/8532#issuecomment-300715940
@cvandal thanks. itās really working
Also I want to pay attention that I did not see much difference between CPU usage before and after using this lifehack
IMO I think itās because hyper.is terminal was only available for OS X initially
+1 Please explain how to enable transparency using flags if it is possible at all. This is my favourite terminal emulator by far and I would like to keep using it but need transparency.
@albinekb I agree that this should be a plugin for now while itās a workaround, but if the electron issue ever gets solved conclusively, I feel it should be moved into hyper again to align with the features available on OSX.
There should also be a note somewhere in the README/docs to clarify this position, as lots of people are probably looking for this feature.
@johnRivs @ryanproud - apparently itās a Chromium issue, per the issue referenced by @albinekb : https://github.com/electron/electron/issues/8532#issuecomment-300715940
I donāt think they (Hyper) can fix it until Chromium does so on their endā¦
Has anyone got this working guys? I am using the latest 3.0.2 on Windows 10 and still not able to get this transparency working.
I think itās better suited for a plugin (for windows) as this will most likely not work 100% all the time and we need to maintain it and also check that it works every time we upgrade electron.
@lucleray You know what, itās not the same but itās close enough. Iām gonna check it out.
Hey, any updates on this for Hyper 2?
Is the workaround no longer possible? Iām on version 1.4.8 and not able to find any of the referenced code in app.asar:index.js.
This is only because if you enable the transparency on windows and then use the View > Full Reload, then the hole window of hyper is completely transparent. I can live with this because I donāt use this āFull Reloadā. I just restart the hole hyper after plugin installations. But I WANT a half transparent window ^^. BTW, thanks for the workaround @cvandal š
@chabou
According to the electron docs :
transparentworks on MacOStransparentwill only work when DWM is enabled on Windows (which can be checked like explained here)transparentwill not work on Linux unless it is started with--enable-transparent-visuals --disable-gpuSo, for Windows, instead of explicitly disabling transparency (https://github.com/zeit/hyper/pull/1307), itās possible to enable it if DWM is enabled.
If you think this should be part of Hyper, I can write a PR for that. Otherwise it could be left to a plugin to handle this.
I have enabled @cvandalās hack on Windows 10 without the
Full Reloadproblem mentioned by @damien122. I do observe @stefanivicās problem with snapping.I edited the contents of
app.asarafter installing from the official installer. Unfortunately that means that when the application auto-updates I lose my transparency.Default electron has a command line flag (
--enable-transparent-visuals) that does this. Hyper could implement a similar flag (maybe--transparentor--force-transparent) or add atransparentsetting toconfigin.hyper.js.