Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Hide system window title bar #4599

Closed
Closed

Description

@dustContributor

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.

EDIT: Made a discussion thread about this https://discuss.atom.io/t/hide-system-window-title-bar/14578

Activity

  1. Bengt commented on Dec 14, 2014

    @Bengt
    Contributor

    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?

  2. dustContributor commented on Dec 14, 2014

    @dustContributor
    Author

    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.

  3. Bengt commented on Dec 15, 2014

    @Bengt
    Contributor

    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.

  4. dustContributor commented on Dec 15, 2014

    @dustContributor
    Author

    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.

  5. mnquintana commented on Jan 30, 2015

    @mnquintana
    Contributor

    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?

  6. zcbenz commented on Jan 30, 2015

    @zcbenz
    Contributor

    @mnquintana Yeah it is possible with frameless window.

  7. luqmaan commented on Feb 11, 2015

    @luqmaan

    If you want a borderless window now, just add

    transparent: true,
    frame: false,

    options =
    show: false
    title: 'Atom'
    'web-preferences':
    'direct-write': true
    'subpixel-font-scaling': false

    To remove the window chrome/title bar on OS X, I modified /Applications/Atom.app/Contents/Resources/app/src/browser/atom-window.js and restarted Atom.

    image

  8. dustContributor commented on Feb 12, 2015

    @dustContributor
    Author

    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.

  9. dustContributor commented on Feb 13, 2015

    @dustContributor
    Author

    Nevermind, I tried it and I can maximize the window just fine, it also removes the menu bar sadly 😢

  10. mathieucivel commented on Apr 16, 2015

    @mathieucivel

    @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 ?

  11. bramcordie commented on Jun 25, 2015

    @bramcordie

    @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.

  12. mnquintana commented on Jun 26, 2015

    @mnquintana
    Contributor
  13. 37 remaining items

  14. lexicalunit commented on Dec 28, 2016

    @lexicalunit
    Contributor

    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.

    https://atom.io/packages/no-title-bar

  15. inancgumus commented on Jan 4, 2017

    @inancgumus

    Solution without a plugin (for full control for the hacker!)

    ##### Add this to: Atom Menu > Config ##### 
    core:
      useCustomTitleBar: true
    // ##### Add this to: Atom Menu > Stylesheet ##### 
    
    // Put this to the top of the file:
    @import "ui-variables";
    
    // Shift the tabs up
    :not(.fullscreen) > atom-workspace {
      // Hide title
      .title-bar .title {
        display: none;
      }
    
      // Remove background from titlebar and toolbars
      .title-bar,
      .tool-bar,
      .tool-bar button.tool-bar-btn {
        background-color: transparent;
        border-width: 0;
      }
    
      atom-workspace-axis.vertical {
        .tab-bar {
          box-shadow: inset 0 0 0;
        }
      }
    
      atom-workspace-axis.horizontal {
        // comment this out if you want draggable titlebar:
        margin-top: -@tab-height;
        background-color: inherit;
      }
    
      // Keep the side panels aligned
      atom-panel-container {
        &.left {
          margin-top: @tab-height;
        }
        &.right {
          margin-top: @tab-height;
        }
      }
    
      .fullscreen {
        atom-workspace atom-workspace-axis.horizontal {
          margin-top: 0px;
        }
        atom-panel-container{
          &.left {
            margin-top: 0px;
          }
          &.right {
            margin-top: 0px;
          }
        }
      }
    
      atom-panel-container.left:empty + atom-workspace-axis.vertical .pane:nth-child(1) .tab-bar
        margin-left: 70px;
      }
    
      .tab-bar {
        margin: 0;
      }
    
      tree-view-resizer {
        border: 0
      }
    }

    Hacked from here & @lexicalunit 's addon :-)

  16. lexicalunit commented on Jan 4, 2017

    @lexicalunit
    Contributor

    @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:

    1. 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.
    2. 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 😄

  17. balupton commented on Jan 16, 2017

    @balupton

    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:

    atom-workspace {
    	.tab-bar {
    		margin: 0;
    	}
    	.tree-view-resizer {
    		border: 0
    	}
    }
  18. elliotbonneville commented on Mar 8, 2017

    @elliotbonneville

    @balupton Did you ever find a way to hide the traffic lights?

  19. simurai commented on Mar 9, 2017

    @simurai
    Contributor

    Completely hiding the title bar:

  20. added
    linux
    windows
    on Mar 9, 2017
  21. elliotbonneville commented on Mar 9, 2017

    @elliotbonneville

    Thanks! I found that out not long after I posted here.

    For the impatient: I compiled the latest version of of the master branch on macOS and it works great there.

  22. miguelsmuller commented on Mar 24, 2017

    @miguelsmuller

    Is it going to be released a version for windows that I can do this?
    The title bar of windows is very ugly

  23. stale commented on Oct 15, 2018

    @stale

    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:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. 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.

  24. lock commented on Apr 28, 2019

    @lock

    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!

  25. locked as resolved and limited conversation to collaborators on Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlinuxstaleuiwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions