Skip to content

Mac: Provide a setting to hide the title bar and inline the window controls #12377

Open

Description

@orta

Hello there, a lot of the standard apps in recent versions of macOS have started to inline their titlebar into their tabs, menu buttons etc. I assume this is mainly to save vertical space on laptops. However, like all UI trends, apps that don't quite keep up end up feeling old-fashioned 👯

I started a fork of VS Code that uses the inline style:

screen shot 2016-09-21 at 12 59 09

There needed to be a few changes:

  • I moved the sidebar width to 76, to fit the traffic lights
  • I increased the height of the elements that act as the titlebar by one pixel, mainly so that they align with the centre position of the titlebar items
  • Allow mouse dragging via the sidebar, and the title elements

Fork: https://github.com/orta/vscode/tree/inline-titlebar
Changes: orta/vscode@master...mac-titlebar-inline

I realise that VS Code is a cross-platform project, and so these changes should probably only be applied in the context of macOS, which I'm happy to look into with some advice (I don't have a windows/linux machine to hand for example).

I also know that no-one wants big unexpected UI changes on their OSS projects, so I've not made it as a PR, but I'd love to know if/what I can do to move this upstream?

Sidenote: If someone can tell me how, I'm happy to make a downloadable build for people to try too, I couldn't find a way to do it - I'm still quite fresh to npm projects.

Activity

  1. orta commented on Sep 21, 2016

    @orta
    ContributorAuthor

    Here's a GIF of me prodding and poking around with it too

    2016-09-21 13_19_25

  2. joaomoreno commented on Sep 21, 2016

    @joaomoreno
    Contributor

    Good Lord, this looks amazing.

  3. bpasero commented on Sep 21, 2016

    @bpasero
    Contributor

    Orta Therox (@orta) cool! how does it work though if you have a whole bunch of tabs open to the top? no more window drag?

  4. orta commented on Sep 21, 2016

    @orta
    ContributorAuthor

    Looks like right now the tabs themselves are draggable as the window - which causes bugs as this interferes with re-ordering tabs normally. I can declare them as undraggable easily.

    An option here is to have space above the tabs ( Chrome does this for example )

    screen shot 2016-09-21 at 16 09 31

  5. joaomoreno commented on Sep 21, 2016

    @joaomoreno
    Contributor

    Which is still pretty ugly. But you can always drag it from the space around the Close, Minimize and Maximize buttons, can't you?

  6. orta commented on Sep 21, 2016

    @orta
    ContributorAuthor

    Yep, these are the current draggable regions ( I just removed tabs from being draggable )

    The traffic lights, and if there is a sidebar open, the title of the sidebar
    screen shot 2016-09-21 at 16 34 21

    All of the sidebar:
    screen shot 2016-09-21 at 16 35 17

    Any non-tab content of the top bar, including around the buttons on the right:
    screen shot 2016-09-21 at 16 35 13

  7. joaomoreno commented on Sep 21, 2016

    @joaomoreno
    Contributor

    Oh wow. That's just awesome.

    PS: I learned something today: traffic lights!

  8. bpasero commented on Sep 21, 2016

    @bpasero
    Contributor

    Orta Therox (@orta) is it possible to make the side bar size smaller and still fit the window icons? I feel like we loose a lot of horizontal space to accomodate for the icons. I am not sure how people would like that if they care about space for the editor... and in fact, many have asked for a way to hide that sidebar too.

  9. orta commented on Sep 21, 2016

    @orta
    ContributorAuthor

    With respect to smaller width, it can, but this is roughly the minimum to ensure that there is a consistent margin applied to the buttons.

    Which is roughly the same as say:

    screen shot 2016-09-21 at 17 35 20 screen shot 2016-09-21 at 17 35 43
    screen shot 2016-09-21 at 17 38 02
    screen shot 2016-09-21 at 17 38 17

    e.g. this is 50px as current:

    screen shot 2016-09-21 at 17 34 34

    As a counter-argument, the new Slack beta is more aggressive with its management of the titlebar:

    screen shot 2016-09-21 at 17 36 22

    which is the same x, y as

    screen shot 2016-09-21 at 17 44 21

    It does stick out a bit more, as those positions are the default for not-inlined titlebars ( e.g. normal stick a bar on the top ones, like current ) - with that it is possible to reduce the size down to 68px

    screen shot 2016-09-21 at 17 41 21


    Other possibilities are less trivial, Xcode for example has these sidebar menu items above the contextual sidebar

    screen shot 2016-09-21 at 17 45 53

    which makes them togglable along with the sidebar when you want more focus:

    screen shot 2016-09-21 at 17 46 50

    which, if you'll excuse my quick "rendering" in CSS could look something on the lines of:

    screen shot 2016-09-21 at 17 51 13

    There's potential in that, which I can jam on if you're interested (and make a higher fidelity version tomorrow ) - though I'd recommend using the other insets for the traffic lights, then there's a nice visual consistency along the top row


  10. joaomoreno commented on Sep 21, 2016

    @joaomoreno
    Contributor

    Love the depth you go into this.

    I don't really feel the same way as Benjamin Pasero (@bpasero) and think the width is good. We can even show more in that bar, given the added width, like the keyboard shortcuts to open each viewlet (like Slack) or a label.

  11. added
    feature-request
    ux
    on Sep 21, 2016
  12. hochem commented on Sep 21, 2016

    @hochem

    Hello! I've also been experimenting with a different UI for vscode and I really like the concepts shown here. I had some very similiar ideas:

    vscode_frameless1

    But with the completely titlebar-less design (tabs starting at window frame) and multiple editors and tabs it's quite hard to find a good solution for window dragging (which should also be consistent with the default macOS implementation).

    Currently I am using this design (again very similiar to the latest image of Orta Therox (@orta)):

    vscode

    With this design I can easily show and hide the sidebar using a keyboard shortcut and the activitybar isn't taking up extra horizontal space. And there is still a dark titlebar (currently without a title) to drag the window around, but I will probably go back to the default titlebar and just keep the sidebar and activitybar design. This design (or a design where the activity bar can be hidden) would also greatly benefit from a button in the footer (maybe left corner where previously the extensions button was) to toggle the sidebar visibility. I don't have my changes online yet, as they seem quite hacky, are only for the dark theme and they are a part of other changes I made, but if there's any interest, I can isolate and push them.

  13. 135 remaining items

  14. martonlederer commented on May 16, 2023

    @martonlederer

    I wonder why VSCode is on GitHub if even the highest voted issues are just blatantly ignored...

  15. kanekv commented on Jun 2, 2023

    @kanekv

    With customize UI not working anymore, this issue suddenly became very annoying.

  16. lehni commented on Jun 3, 2023

    @lehni

    Kane K (@kanekv) see here for a workable solution for the time being:

    iocave/customize-ui#156 (comment)
    iocave/customize-ui#170 (comment)

  17. albert-ying commented on Jun 4, 2023

    @albert-ying

    I mean, is it really hard to do? Maybe we can just crowd source some fund and hire someone to do it and send the PR. I think everyone here are willing to pay few $ to see this fixed soon.

  18. KisaDmitriy38 commented on Jun 4, 2023

    @KisaDmitriy38
  19. DannyAndres commented on Jun 29, 2023

    @DannyAndres

    come on microsoft, let me forget that I'm using an electron app and let me live the fantasy where vscode is a native app 😭. I swear one more annoying thing with vscode and I won't care how much I suck at vim. I'll do it 💀

  20. julesjacobs commented on Aug 9, 2023

    @julesjacobs

    People are buying new Macbooks just to get the 10 extra vertical pixels, and VS code could give us 20 pixels for free. Microsoft, you can do it!

  21. natew commented on Aug 11, 2023

    @natew
  22. robertoandrade commented on Oct 8, 2024

    @robertoandrade

    image
    was looking for a way to move the top-horizontal-oriented activityBar up that empty space on the titleBar next to the traffic lights, before the command pallete and back/forward buttons, any tips on using either the Orta Therox (@orta) fork or Apc Extension?

    On windows they seem to place the hamburguer menu up there on the left next to the app's icon, was hoping that would be possible not only on macOS but on Windows too 🙏

  23. jdanbrown commented on Dec 11, 2024

    @jdanbrown
    Contributor

    The Apc Customize UI++ extension broke in the VSCode 1.94 update, so afaik there's no longer any way to hide the title bar on macOS:

    Please give this issue some love!

  24. jdanbrown commented on Dec 13, 2024

    @jdanbrown
    Contributor

    Ok, after some more digging I found Song (@subframe7536)'s new Custom UI Style extension 🎉 which provides a new way to hide the title bar on macOS:

    They built it as a replacement for Apc Customize UI++ after VSCode 1.94, but they had to take a much hackier approach to make it work (regex replacements on minified js files, instead of AMD dynamic define() injection). Details in this other issue:

    But I still vote for VSCode to support these kinds of electron window options directly, because of how brittle these kinds of extensions always are. 🙏

    Adding another motivating example for this thread, using Custom UI Style I can make a frameless VSCode window on macOS (plus no rounded corners, and no traffic light buttons, and some extra font/sizing configs too):

      // Electron BrowserWindow options
      //  - https://www.electronjs.org/docs/latest/api/base-window
      //  - https://www.electronjs.org/docs/latest/api/browser-window
      "custom-ui-style.electron": {
        // Frameless window (no title bar, no traffic light buttons)
        //  - https://www.electronjs.org/docs/latest/tutorial/custom-window-styles#frameless-windows
        //  - https://www.electronjs.org/docs/latest/tutorial/custom-title-bar
        "frame": false,
        // Disable rounded corners
        //  - "Setting this property to false will prevent the window from being fullscreenable"
        "roundedCorners": false,
      },
    Image
  25. lehni commented on Dec 27, 2024

    @lehni

    I'm sharing my updated instructions to achieve the macOS wide activity-bar with native traffic lights look, that was originally provided by my Titlebar-Less VSCode for macOS, then replaced by Customize UI, Apc Customize UI++ and now Custom UI Style:

    subframe7536/vscode-custom-ui-style#16

    Image
  26. robertoandrade commented on Jan 12, 2025

    @robertoandrade

    Thanks for sharing these updates guys! From what I looked so far, these tools wouldn't allow me to achieve what I'm looking for with keeping the current native title bar and move the top-horizontal-oriented activity bar up onto the title bar keeping the traffic lights and the command palette and all other buttons that are featured there currently, perhaps just moving the command palette slightly to the right so all of the activity bar icons can fit on the right hand side there? Something like the below:

    Image

    On windows they have the vscode icon and menu up there while on macOS it's kept outside the window on the OS menu bar, but still would like a way to disable the windows menu in favor of the top activity bar in its place:

    Image

    They recently added the integrated Copilot icon up there as well and have options to toggle which items you want to show in the title bar, so moving the activity bar there should be possible with custom title bar hacks :)

    Image

  27. github-account1111 commented on Apr 16, 2026

    @github-account1111

    I moved the sidebar width to 76, to fit the traffic lights

    Is that really necessary? I know vertical space is all the rave right now, but horizontal space is also important.

    Why not keep everything as is and simply integrate the tab bar into the title bar like in Chrome?

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

    feature-requestmacostitlebarux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions