SolvedMailspring [Feature Request] Add 'Hide menu bar' menu item

Are there any related issues?

...

What operating system are you using?

Elementary OS

What version of Mailspring are you using?

1.0.3

--

Bug?

Do you have any third-party plugins installed? If so, which ones?

No plugins

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

No, it concerns application's interface, not email accounts.

Is the issue reproducible with a particular attachment, message, signature, etc?

...

--

Feature Request?

Does this feature exist in another mail client or tool you use?

Hidden menubar in the previous (1.0.2) version was great for sleek Elementary OS look. Now it is impossible to hide, so it is a bit of visual clutter some people will find unnecessary. Let the user decide if he wants to see the menubar all the time by creating a menu item or a checkbox in the Preferences, just like Firefox and Thunderbird do.

16 Answers

✔️Accepted Answer

You can make this permanent by using a plugin :
create a folder for the plugin : 'hide-menu-bar'
create a file called 'package.json' in that folder :

{
  "name": "hide-menu-bar",
  "main": "./main",
  "engines": {
    "mailspring": ">=1.0.8"
  },
  "description": "Plugin for mailspring : hide the menu bar (Alt to toggle)",
  "license": "MIT"
}

then create a file called 'main.es6' in the same folder :

import electron from 'electron';

export function activate() {
	let win = electron.remote.getCurrentWindow();
	win.setMenuBarVisibility(false);
	win.setAutoHideMenuBar(true);
}

then in Mailspring :
Developer >> Install plugin
and select the 'hide-menu-bar' folder.

Other Answers:

Hey folks - in the next release I'm adding a preference for this, as well as a new option to use the "right corner hamburger menu" and completely custom window controls. I think this will improve things a lot, especially on distros like Elementary where the standard window frame is very tall.

New options:
image

"Right corner hamburger" option - note the system window frame is not used at all, so it'll look like this (or your selected theme) on all Linux distros:
image

You just need to toggle the developer tools (Ctrl+Alt+I) and paste this in the console :
require('electron').remote.getCurrentWindow().setAutoHideMenuBar(true)
Then you can toggle the menu bar using Alt.
You need to do this everytime you restart Mailspring though.

Related Issues:

35
Mailspring Libsecret not installed (SNAP on KDE Neon)
$ sudo apt install gnome-keyring fixes this What operating system are you using? KDE Neon What versi...
14
Mailspring ProtonMail Bridge IMAP integration
@bengotow The current problem is that mailsync attempts to create a top-level Mailspring folder whic...
12
Mailspring [Feature Request] Add 'Hide menu bar' menu item
You can make this permanent by using a plugin : create a folder for the plugin : 'hide-menu-bar' cre...
4
Mailspring Notifications not working. MacOS Mojave
Hey folks Are there any related issues? I looked up read and tried every solution posted out there w...
4
Mailspring Ubuntu 17.10 GNOME DE: no ICON badge for unread mails
I use Ubuntu Mate 18.10 and got it working last week Are there any related issues? .. What operating...
570
desktop The user name or passphrase you entered is not correct.
It sure looks like something's screwy with Keychain Try opening Keychain Access.app ...
506
electron Requiring electron outside of main.js causes a TypeError
For anyone encountering this problem in the future and reading this thread Electron version: 1.3.5 O...
358
atom Sometimes opening a file, Atom does not open in a new tab
This feature is called Pending Pane Items (formerly known as Preview Tabs) – this allows you to quic...
356
desktop Could not resolve host: github.com
Check this out as well it helped me. Description I create a new repository in my local and complete ...
322
desktop It keeps saying The user name or passphrase you entered is not correct.
@tom10271 we think this is related to Keychain access due to some sort of macOS update: Try opening ...
236
electron Error while importing electron in react | import { ipcRenderer } from 'electron'
@MarshallOfSound my mistake I found the solution in issue #7300 if it can help anyone Please note th...
229
electron Failed to load resource: net::ERR_FILE_NOT_FOUND file:///D:/css/app.css
If this occur when having <base href=/> in the index.html just replace it by <base href=./>. ...
219
desktop A lock file already exists in the repository, which blocks this operation from completing.
@simhox thank you for updating the issue body and uploading the log file! Here's the related error: ...
204
electron Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
Try It should output a progress bar for the download 👍 Electron version: latest (That Try) Operatin...
199
vscode macOS Mojave: font rendering is blurry or has changed
So.. Mojave is out The font rendering looks awful on both 1x displays and Retina displays I'm really...
176
atom MacOS Mojave: The text in the editor is dimmed / hard to read.
Hey folks could you try running this command and then restart Atom: Hat tip to @alexanderyakusik in ...
175
electron How do I open a url from <a> on default OS browser?
I found this code snippet on S.O.: Dropped it in my main index file it seems to be working as far as...
164
react native debugger It looks like you are passing several store enhancers to createStore()
I've just had this same problem with almost exactly the same code and have managed to fix it Instead...
161
typeorm Error: RepositoryNotFoundError: No repository for [Enitity] was found. Looks like this entity is not registered in current "default" connection?
https://typeorm.io/#/connection-options/common-connection-options Issue type: [x] question [x] bug r...
142
atom Add config option for MRU tabs
So a temporary fix for this issue is to insert this into the keymap correct? Prerequisites Can you r...
139
electron 9.0.0 does not display local images
A recap for anyone else who's having this issue: Make sure you've enabled webSecurity from your Brow...
137
electron vue this.$store.dispatch('someAsyncTask'), action not run
Same here and I've wasted just 2h debugging this crap until I realized the issue is in fact in elect...
134
vscode Tabs for integrated terminal
The tabs were originally considered but widely panned by the team as it could cause confusion having...
133
desktop Improve ease of configuring Git to work with corporate proxy
@DanielKeogh currently you still need to tell Git about your proxy settings: git config --global htt...
121
vscode How to detect shift shift key in VSCode?
Indeed would be nice if we could define this key binding in keybindings.json: VSCode Version: 1.0.0 ...
120
vscode Lagging/freezing using VSCode Insiders in Big Sur
Try this VSCode Version: 1.50.0-insider OS Version: Darwin x64 20.1.0 Full version details Version: ...
112
vscode Linux: ENOENT: no such file or directory, lstat '/snap/code'
For now sudo ln -s /snap/vscode /snap/code did the trick Waiting for fix. Issue Type: Bug Today afte...
109
desktop fatal: unable to access 'https://github.com/': Could not resolve proxy: aproxy
Run the below command git config --global --unset http.proxy Description [Description of the issue] ...
108
atom "Multi Cursor on Click" seems to always be disabled in Atom 1.48.0
@HugoMcPhee posted and deleted a comment linking to #20804 which does indeed seem to offer a fix for...
106
vscode [folding] language-aware folding
Another issue I don't see in that list is user-configured folding like this example from C#: In the ...
104
Google Play Music Desktop Player UNOFFICIAL Stuck on "Loading music library"
Fix available (for Windows at least): Install 7zip (at your own risk) Install Asar7z (at your own ri...
104
nodegit Can't install via NPM
Latest Xcode just straight up broke things all across the world Try running sudo xcode-select --inst...
103
electron The SUID sandbox helper binary was found, but is not configured correctly
CONFIG_USER_NS=y enables the user namespaces feature but they're still restricted to privileged user...
96
electron builder Can not build the windows installer on macOS Catalina version 10.15
electron-builder 22.2.0 now includes a targeted workaround extracting the NSIS uninstaller without t...
91
electron builder Built application displays nothing but a white screen
If any of you guys use React Router one of the thing that might break your Electron build is Browser...
90
angular electron npm install reports error "npm ERR! Unexpected end of JSON input while parsing near '...DhrC8dH0nnKOokwftJ+Cy'"
I found a solution by running npm cache clean --force and npm install -g @angular/cli@latest solutio...
89
desktop reference broken
@herio5154 thanks for the feedback! It looks like something with the underlying Git repository has b...
83
atom Uncaught Error: Setting active pane that is not present in pane container
Alright so as an update [Enter steps to reproduce:] @ungb's repro steps from below: Open Atom with a...
83
atom Font Rendering issue with freetype 2.8.1
Workaround: Prerequisites [X ] Put an X between the brackets on this line Description The fonts are ...
83
desktop Feature Request: Graph history view
IMO full tree is too complex and we should decide the main reason to add this feature ...
82
desktop Commit failed error with GPG signing turned on
In case it helps someone the workaround I'm using for now is to disable gpg signing with a repositor...
78
quasar Add quasar into an existing project
I got it working by installing quasar-framework Hello I would like to know how to add Quasar into an...
78
typeorm Relation decorators: allow to pass string instead of typeFunction
PR is submitted As an example Issue type: [ ] question [ ] bug report [x] feature request [ ] docume...
76
typeorm How to get foreign key for instance?
You can't do that because your group is relation object its not a simple number (id of the pricetagg...
73
vscode Allow for transparent / vibrant window theme
I mode a Extension that can enable Acrylic/Glass effect for your VS Code without recompiling Support...
72
vscode Peek/Go To Definition & Click to Open do not work with Webpack alias
You can accomplish this using the paths option Full writeup here TL;DR add to your jsconfig.json or ...
71
typeorm MissingDriverError: Wrong driver: "undefined" given.
solved it by export the config this way in my ormconfig.ts: Issue type: [ ] question [X] bug report ...
70
electron autoUpdater does not work when have authenticated proxy
I finally got everything working so I just wanted to report back here quickly while I'm waiting for ...
68
atom Unable to installing atom-amd64.deb on Ubuntu 17.04
I had the same issue when installing on 17.04 Prerequisites Put an X between the brackets on this li...
64
atom [1.19.0] [macOS] Atom CLI doesn't open native tabs
@dannyradden open file /Applications/Atom.app/Contents/Resources/app/src/main-process/atom-window.js...