Repository navigation
More title-bar options (macOS) - #13616
Conversation
# Conflicts: # src/main-process/atom-window.coffee
Might get added again later.
to fit the traffic lights when `titleBarStyle = 'hidden-inset'` is used.
So themes/packages can adapt to the custom title-bar
So that the border doesn’t affect the height.
# Conflicts: # src/main-process/atom-application.coffee
# Conflicts: # src/config-schema.js
Not entirely true. To move a window on macOS without a title bar, you can hover over the edge of the window so the resize arrow appears, then drag perpendicular to the direction of the resize arrow. For example, when hovering over the left or right edge, drag vertically instead of horizontally. (This also works for windows with a title bar, of course.) |
|
Since the traffic lights are gone now, it appears that the If the only concern is rendering of the menu bar, I'd be more than happy with the menu bar being completely disabled in |
Wow.. 🙀 I didn't know that. That's actually really clever. Had to gif it: |
|
@simurai great news, cheers from Zurich :) |
|
@simurai In my I simply set |
|
@jdsimcoe, it seems like your plugin is a fork with a small modification of my My copyright is even in your repository's commit history. I am perfectly fine with you or anyone copying, modifying, and distributing my original codebase. However I am not sure that you've satisfied the following provision of the MIT license in the case of
Considering a substantial portion of your package is my code, if you wouldn't mind please updating your repository's LICENSE and README to reflect as much, I would be grateful! You might also be interested in the recent PR that author @thfrlw submitted to my package which provides the same functionality of being able to drag the window using the empty space to the right of non-full-width tab-bars. It does so in a way that does not force a tab height as your package does. Your See how the tab hight has been incorrectly adjusted to be wider than intended by the theme I am using? My With @thfrlw's solution, I do not have this problem. Perhaps your modification would best be implemented within |
|
@lexicalunit I meant you know direspect, so sorry for lousing that up. I adjusted my README to reflect that my plugin is based on your I adjusted the license and put my name in there because I wasn't sure how I should probably document the LICENSE portion but will change it any way that satisfies your request. |
|
Thank you @jdsimcoe! I assumed you had no ill-intention. I think diversity in open source is an asset and look forward to seeing where you take I have also forked others' source code in the past and in one particular instance I modified, over time, their source to the point where it was nearly an entirely different codebase of my own writing. Yet I maintained some prominent documentation about the history of the source code in good faith. Thank you again for the quick turn around on this issue! 🎉 |
|
@lexicalunit 👍 Yeah I'm going to dive into the new beta features and explore monkeying with |
|
Awesome! Yeah this PR has some big implications for both of our packages, @jdsimcoe. I have been meaning to take some time to explore different options for the direction of my package in the new Atom beta using the new |
Yeah, was considering that but then decided against it. The reason is that you can't rely on the empty space because it keeps changing. If your muscle memory is trained to move towards the tab bar, it might be frustrating to realized that the tab bar is full and now you have to move your mouse down to the status bar. Probably better to let themes/packages enable it if the tab bar has some padding around the tabs. Or add some padding on the right (maybe with a border, icon on hover) so that you always know there is a place to drag. Anyways, with this PR there are now 3 CSS classes that you could use to customize the tabs or other things:
|
|
Fabulous, @simurai! 👏 Thanks for the color! |
|
For the ability to still drag the window with little or no (or unreliable) empty space available, would it be a good suggestion to introduce a hotkey to change dragging a tab from So for example click and drag on any tab and it behave as it does now and moves the relative position of that particular tab, but hold down say Having this off by default and toggle-able would allow the user to know what is needed to move the window, as opposed to introducing a 'hidden' method. |
|
@eboracus that actually sounds like a neat idea! I may take a crack at it this weekend. |
|
@lexicalunit You could also toggle the visibility of the tab bar to show a draggable area. |
|
@thfrlw Hehe.. probably a little against Apple's HIG, but clever hack. 😆 Do the custom traffic lights actually work, or would they still need to be wired up? |
|
It does work, here is a snippet from toolbar.cson, it explains how. |
|
Since this PR is merged and this discussion is not directly regarding the PR itself, could we move it to Discuss? It will also make these suggested enhancements more visible to the community, I think 😀 |
|
👍 |
|
Haha @thfrlw that is awesome :) |
|
hi |
|
@thfrlw Neat! Mind sharing your styles? I kind of got it working, but the behaviour doesn't quite match the native controls… |
|
@danielbayley Thanks! |





Description of the Change
This replaces the current "Use Custom Title Bar" checkbox with a "Title Bar" dropdown. It has the following options:
native(default)customadapts to themescustom-insetNew! has more paddinghiddenNew! completely hiddenNative
Custom
Custom Inset (new)
Hidden (new)
Alternate Designs
I also tried to add a "hide title-bar but keep the traffic lights" option:
Unfortunately there are a few edge cases that would make the UI look broken. It's something that a package, theme or
styles.lesscould provide whencustom-insetis used.Another example with the
tool-barpackage taking the role of a "title bar":Why Should This Be In Core?
Needs access to the
BrowserWindowAPI.Benefits
Possible Drawbacks
When hiding the title-bar, managing the window needs to be done with the keyboard or from the menu. Dragging the window needs to be done with the status-bar. Not really a drawback since it's a choice and not the default.
Applicable Issues
This PR contiues from #10208 (Hide title bar on OS X) and #11790 (already merged).
/cc @atom/feedback @atom/design