You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Hi! Could it be possible to implement system window title bar/borders hiding like Chromium/Chrome has?
If you have used Chromium/Chrome you can notice it lacks the "system window title bar" by default (ie, the bar that says the name of the window and has the minimize, maximize and close buttons), while at the same time providing its own tiny minimize, maximize and close buttons in the top, rightmost part of the window.
Some window managers for Linux let you hide the window title bar, but since Atom lacks its own minimize/maximize/close buttons, it becomes inconvenient. Besides, it would be something nice to have in Windows/OSX too.
IMHO, this feature manages to save (precious!) vertical space, and looks much more pleasant.
Other possibilities to save vertical space are could run Atom maximized (F11 by default) or use the zen mode package.
While I think adding a compact title bar as you suggest would be an improvement, I do not use them in Chrome or Firefox, because they take up (also precious) vertical space. The more user interface elements you put into the tab bar, the fewer place there is for actual tabs. While in Web browsers there usually is a favicon to distinguish tabs, in a text editor you need to see as much of the file path and name as possible. So vertical space is much more scarce in Atom than Chrome. On the other hand there are certainly use cases where the lower number of tabs open in a text editor outweighs the wider tab titles. So some people might actually find this useful.
I would say, as long as it stays an option, it does not hurt to have it in Atom. ... Chrome and Firefox come with a compact tab bar by default. Would you expect Atom to do so, too?
IMHO, yup, it would give a nicer first impression when you open the editor. It was literally what sold Chrome to me when I first used it around 4 years ago 😃
in a text editor you need to see as much of the file path and name as possible.
At least in my Atom install, I only see the file name in the tab title. Full path is shown in window title bar and status bar (in that case, window title bar is even more useless given it shows already shown information).
With that in mind, if you have enough files open for their tab titles to reach the rightmost part of the window (ie, where the close/minimize/maximize buttons would be), you probably wouldn't be able to read titles anyway. At most you'd be sacrificing only one more tab before tab names start to get shortened.
Then again, if you really want that one tab, the option of showing the window title bar should be there, although I think it wouldn't be common for an user to do so. Good point about the favicons though.
Other possibilities to save vertical space are could run Atom maximized (F11 by default) or use the zen mode package.
Yup, although with zen mode, you're giving up everything but the current editor for the extra space. And with fullscreen, you're giving up the OS panels. I think that just hiding the window title is a better trade-off altogether.
in a text editor you need to see as much of the file path and name as possible.
At least in my Atom install, I only see the file name in the tab title.
Try opening two files with the same filename but with different paths. Atom will place the project relative path to them in the tab title.
if you really want that one tab, the option of showing the window title bar should be there, although I think it wouldn't be common for an user to do so.
On the other hand, it shouldn't be that common to want an extra one or two lines. Novice users might find it useful to have the tab bar clearly separated from the window title bar.
Other possibilities to save vertical space are could run Atom maximized (F11 by default) or use the zen mode package.
Yup, although [...] with fullscreen, you're giving up the OS panels.
There is usually a way to get to the OS/DE again. GNOME and Windows use the super/windows key for that, in other cases you might be able to Alt-Tab to a non-maximized window.
Try opening two files with the same filename but with different paths. Atom will place the project relative path to them in the tab title.
Nice!
On the other hand, it shouldn't be that common to want an extra one or two lines.
I'd argue that its one of those things you don't know you want until you have it. Much like what happened with Chrome.
Novice users might find it useful to have the tab bar clearly separated from the window title bar.
Really? Why?
There is usually a way to get to the OS/DE again.
Of course, via additional steps and/or keyboard shortcuts, not pretty seamless. As I said, hiding the title bar and moving the buttons to the tabs bar is a better tradeoff.
Ooooh, this would be pretty cool. I don't know if there should be no title bar by default, but having a config setting for it would be nice. I think whether or not this is currently possible to implement would depend on atom-shell, and not really Atom core. @zcbenz would this be possible with atom-shell?
Yeah but that doesn't uses the gained space nor provides handy close/minimize buttons which defeats the whole point 😞 I explained the idea thoroughly in the OP and the linked discussion.
@luqmaan I tried the borderless window trick but with version 1.0 the file seems to have moved to Atom.app/Contents/Resources/app.asar/src/browser/atom-window.js. Whenever I edit the file and restart Atom, the changes are gone.
Using the Custom Title Bar feature we can achieve a hidden window title bar while still maintaining the ability to drag-and-drop things like editor tabs and tree-view entries. To make it work I added window draggability basically everywhere, and then specifically disabled it where we don't want it (tabs, tree-view entires, the editor itself, etc...). Seems to be working fairly well.
@inancgumus Yep, my package is nothing more than a stylesheet based on the same sources you mentioned, so this should work just fine for those who don't want to install a package 👍
One nice thing about using a package is that people can open issues against it and we can iterate over them as a community, continually improving the solution. For example, there's two bugs in the code you posted:
You will lose tabs completely in fullscreen mode. You can fix this by changing the atom-workspace selector to something like :not(.fullscreen) > atom-workspace.
With the tree-view toggled off and the editor panes split vertically, all panes except the first will have margin-left: 70px incorrectly applied to them. You can fix this by using an nth-child selector like so: atom-panel-container.left:empty + atom-workspace-axis.vertical .pane:nth-child(1) .tab-bar.
Also you no longer have to choose between draggable tabs and a draggable window. I've updated my package to support both at the same time 😄
Reacted by Benjamin Lupton, Elliot Bonneville, Germán Ríos González, Joshua Bemenderfer, Preco, Luke Deen Taylor, Maxime Laforet, Hans Koch, Karl Horky and foe
Reacted by Preco, Luke Deen Taylor, Hans Koch and Peter Piekarczyk
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
What OS and version you reproduced the issue on
What steps you followed to reproduce the issue
Issues that are labeled as triaged will not be automatically marked as stale.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
Bengt commentedon Dec 14, 2014
Other possibilities to save vertical space are could run Atom maximized (
F11by default) or use the zen mode package.While I think adding a compact title bar as you suggest would be an improvement, I do not use them in Chrome or Firefox, because they take up (also precious) vertical space. The more user interface elements you put into the tab bar, the fewer place there is for actual tabs. While in Web browsers there usually is a favicon to distinguish tabs, in a text editor you need to see as much of the file path and name as possible. So vertical space is much more scarce in Atom than Chrome. On the other hand there are certainly use cases where the lower number of tabs open in a text editor outweighs the wider tab titles. So some people might actually find this useful.
I would say, as long as it stays an option, it does not hurt to have it in Atom. ... Chrome and Firefox come with a compact tab bar by default. Would you expect Atom to do so, too?
dustContributor commentedon Dec 14, 2014
IMHO, yup, it would give a nicer first impression when you open the editor. It was literally what sold Chrome to me when I first used it around 4 years ago 😃
At least in my Atom install, I only see the file name in the tab title. Full path is shown in window title bar and status bar (in that case, window title bar is even more useless given it shows already shown information).
With that in mind, if you have enough files open for their tab titles to reach the rightmost part of the window (ie, where the close/minimize/maximize buttons would be), you probably wouldn't be able to read titles anyway. At most you'd be sacrificing only one more tab before tab names start to get shortened.
Then again, if you really want that one tab, the option of showing the window title bar should be there, although I think it wouldn't be common for an user to do so. Good point about the favicons though.
Yup, although with zen mode, you're giving up everything but the current editor for the extra space. And with fullscreen, you're giving up the OS panels. I think that just hiding the window title is a better trade-off altogether.
Bengt commentedon Dec 15, 2014
Try opening two files with the same filename but with different paths. Atom will place the project relative path to them in the tab title.
On the other hand, it shouldn't be that common to want an extra one or two lines. Novice users might find it useful to have the tab bar clearly separated from the window title bar.
There is usually a way to get to the OS/DE again. GNOME and Windows use the super/windows key for that, in other cases you might be able to
Alt-Tabto a non-maximized window.dustContributor commentedon Dec 15, 2014
Nice!
I'd argue that its one of those things you don't know you want until you have it. Much like what happened with Chrome.
Really? Why?
Of course, via additional steps and/or keyboard shortcuts, not pretty seamless. As I said, hiding the title bar and moving the buttons to the tabs bar is a better tradeoff.
mnquintana commentedon Jan 30, 2015
Ooooh, this would be pretty cool. I don't know if there should be no title bar by default, but having a config setting for it would be nice. I think whether or not this is currently possible to implement would depend on atom-shell, and not really Atom core. @zcbenz would this be possible with atom-shell?
zcbenz commentedon Jan 30, 2015
@mnquintana Yeah it is possible with frameless window.
luqmaan commentedon Feb 11, 2015
If you want a borderless window now, just add
atom/src/browser/atom-window.coffee
Lines 28 to 33 in 0eb7425
To remove the window chrome/title bar on OS X, I modified
/Applications/Atom.app/Contents/Resources/app/src/browser/atom-window.jsand restarted Atom.dustContributor commentedon Feb 12, 2015
Yeah but that doesn't uses the gained space nor provides handy close/minimize buttons which defeats the whole point 😞 I explained the idea thoroughly in the OP and the linked discussion.
dustContributor commentedon Feb 13, 2015
Nevermind, I tried it and I can maximize the window just fine, it also removes the menu bar sadly 😢
mathieucivel commentedon Apr 16, 2015
@luqmaan thanks, I have now retrieved the perfect distraction free mode I used to like on Sublime.
I guess there is now way to keep the change across versions yet ?
yutzhead commentedon Apr 20, 2015
Also relevant: http://askubuntu.com/questions/75284/remove-titlebar-from-maximized-terminal-window
bramcordie commentedon Jun 25, 2015
@luqmaan I tried the borderless window trick but with version 1.0 the file seems to have moved to Atom.app/Contents/Resources/app.asar/src/browser/atom-window.js. Whenever I edit the file and restart Atom, the changes are gone.
mnquintana commentedon Jun 26, 2015
For anyone following this, here's some more discussion / background: https://discuss.atom.io/t/hide-system-window-title-bar/14578?u=mnquintana
37 remaining items
lexicalunit commentedon Dec 28, 2016
Using the Custom Title Bar feature we can achieve a hidden window title bar while still maintaining the ability to drag-and-drop things like editor tabs and
tree-viewentries. To make it work I added window draggability basically everywhere, and then specifically disabled it where we don't want it (tabs,tree-viewentires, the editor itself, etc...). Seems to be working fairly well.https://atom.io/packages/no-title-bar
inancgumus commentedon Jan 4, 2017
Solution without a plugin (for full control for the hacker!)
Hacked from here & @lexicalunit 's addon :-)
lexicalunit commentedon Jan 4, 2017
@inancgumus Yep, my package is nothing more than a stylesheet based on the same sources you mentioned, so this should work just fine for those who don't want to install a package 👍
One nice thing about using a package is that people can open issues against it and we can iterate over them as a community, continually improving the solution. For example, there's two bugs in the code you posted:
atom-workspaceselector to something like:not(.fullscreen) > atom-workspace.tree-viewtoggled off and the editor panes split vertically, all panes except the first will havemargin-left: 70pxincorrectly applied to them. You can fix this by using annth-childselector like so:atom-panel-container.left:empty + atom-workspace-axis.vertical .pane:nth-child(1) .tab-bar.Also you no longer have to choose between draggable tabs and a draggable window. I've updated my package to support both at the same time 😄
balupton commentedon Jan 16, 2017
Anyway to get rid of the traffic lights? I have keyboard hotkeys for them. cmd+w, cmd+m, cmd+f
@inancgumus found your solution above works best with:
elliotbonneville commentedon Mar 8, 2017
@balupton Did you ever find a way to hide the traffic lights?
simurai commentedon Mar 9, 2017
Completely hiding the title bar:
1.16👉 More title-bar options (macOS) #13616elliotbonneville commentedon Mar 9, 2017
Thanks! I found that out not long after I posted here.
For the impatient: I compiled the latest version of of the
masterbranch on macOS and it works great there.miguelsmuller commentedon Mar 24, 2017
Is it going to be released a version for windows that I can do this?
The title bar of windows is very ugly
stale commentedon Oct 15, 2018
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale.
lock commentedon Apr 28, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!