Comments (11)
Hi @gschier , I am taking up this issue.
from insomnia.
After looking at the Electron documentation, i found that BrowerWindow has a property autoHideMenuBar which enables this behaviour.
autoHideMenuBar Boolean (optional) - Auto hide the menu bar unless the Alt key is pressed. Default is false.
https://electron.atom.io/docs/api/browser-window/#new-browserwindowoptions
Let me know, what you guys think about this option?
from insomnia.
For whoever takes this on, this PR is a good jumping-off point for work atom/atom#4215
from insomnia.
Question:
- Is this setting going to be found in the preferences section or the view tab?
- Would you like a keybinding for this improvement as well?
from insomnia.
Nice find @brandonb927! 💯 🥇
from insomnia.
Electron has a setMenu
method that looks like it might work to hide the window: https://electron.atom.io/docs/api/browser-window/#winsetmenumenu-linux-windows.
Could add a menu item on Win/Linux to toggle it on the active window. Just have to figure out which hotkey to use.
from insomnia.
Hi everyone! I'm handling issue #195, and its solution will affect this issue. I'll keep you guys posted.
from insomnia.
@PavanKu that looks like exactly what we want. Did you test it out yet?
from insomnia.
@gschier , No. I don't have window or linux machine to test this. 😞
from insomnia.
I took a look at it, I was able to add a checkbox in the settings for toggling auto-hide Menu Bar, but I wasn't sure where to tell Electron to hide/show the bar (looks like there's a BrowserWindow function to set it). I'm on Linux if you have a solution and need me to test it, otherwise I'll keep looking at it tomorrow.
from insomnia.
@Subzidion. Nice!
You can get the current BrowserWindow with electron.remote.BrowserWindow.getFocusedWindow()
, then set the option. We'll have to make sure to do this both when the app is first rendered and when the setting changes. It might be a good place to put this in containers/app.js
in componentDidMount()
.
It might also be a good idea to add autoHideMenuBar: true
to window-utils.js
to prevent the menubar from showing briefly before disappearing.
from insomnia.
Related Issues (20)
- Application Freezes / Unresponsive HOT 2
- Can't login HOT 2
- Error when using multiple Sec-WebSocket-Protocol
- Changing request body type HOT 1
- Chained requests works in desktop client but not via Inso CLI HOT 8
- Query name incorrectly calculated in GQL query HOT 3
- Import through context.data.import.raw() creates new workspace instead of importing on the current workspace HOT 2
- Facing issue while importing a postman collection HOT 2
- Cannot log in when update server blocked HOT 3
- Collection not being synced from cloud HOT 8
- Modal SyncMergeModal not found HOT 1
- Cannot enable data encryption HOT 1
- OAuth 2.0 authentication issues in 9.2.0 version HOT 1
- I can't drag the request to another location HOT 2
- Failed to render: marked(): input parameter is of type [object Object], string expected in Docs tab
- Insomnia not working with VPN
- Unable to login HOT 23
- Why can't the environment variables in one of my Collections reference the variables in the current environment? HOT 2
- Unable to undo (cmd+z) a change once a request has been sent HOT 2
- Pre Request Script - Incorrect value of a recursive env Variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insomnia.