Repository navigation
Hidden title-bar - #12767
Hidden title-bar#12767simurai wants to merge 18 commits into
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.
|
Maybe we could offer the user a choice between |
|
Yeah.. Or if we already add a dropdown, also include frameless? And instead of "Extended" we could try to hide it already in core? Probably not that many people want just the bigger title bar.
|
|
@simurai How can I get this result once I've build the app cloning this branch? With 'this result' I mean the tool-bar on the same line as the traffic lights. |
|
@toioski In your .title-bar {
display: none;
}
// tool-bar
atom-panel-container.header {
border-bottom: 1px solid @base-border-color;
-webkit-app-region: drag;
.tool-bar.tool-bar-top {
overflow-x: auto;
flex-wrap: nowrap;
margin-left: 77px;
}
} |
# Conflicts: # src/main-process/atom-application.coffee
# Conflicts: # src/config-schema.js
|
Found another issue. If you:
then the traffic lights overlap the editor: Lots of config options are nice but making it work with all the possible combinations is kinda a pain. 😭 Anyways.. there is now some minimum width on the left Some wasted space, but prevents overlapping and adds an area to drag the window. |
|
Ok, this is ready for review. Two notes:
|
|
@simurai With |
|
Draggable regions are:
Currently the whole status-bar is draggable. I quite like it. But thinking about it, we might have to limit to only the empty space in the status-bar. Because if you wanna click on something and move a little your mouse, it might starts to drag the window? |
|
Is it possible, in how the window is constructed, to not have the editor pane linked to the tabbar/1st tab position (left-right start position)? (Referring to image in Concrens section of the first post with no tree view on left). If these two can be set independently then it would seem preferable when hiding the title bar (but not the "hide the tab bar if there is only one tab" option) to have the editor pane start immediately on the left of the page and the tabs start where they do now, after the traffic lights. |
|
@eboracus Do you mean if "Always Show Tab Bar" is disabled still add some space above the editor to make room for the traffic lights? Yeah, that would be an option, but some people might think that's a bug and want the space to be removed. It also gets tricky because there are packages like vertical-tabs that would conflict with the traffic lights. So having a minimum width for the left panel container seems to be the least damaging. If you close the tree-view and don't like the extra space, you could customize it further overriding it in your |
|
Actually I am meaning in the case where "Always Show Tab Bar" is still enabled, or where in any case there are tabs visible. That in (only) that case maybe it could look something like this: That is, of course, if the location/placement of the first tab can be 'de-coupled' from the left edge of the editor pane below it. I don't think I've seen this in practice anywhere so not sure if that would be straight forward or ...not. 😕 This format would look similar to the chrome/firefox browser UI on macOS in this respect which, in my opinion at least, look quite elegant in their implementation of this feature. The small space above the tabs that remains a draggable region of the title bar could also be implemented here (maybe as a show/hide configurable option? Or is that something more for themes anyway? :S Maybe an 'override theme and don't have full height tabs' option </stabbing in the dark>). |
|
That would certainly be possible. To add some extra space to the tab-bar. It just gets tricky when considering that any package can add something on the left or top. Then the tab-bar needs to be notified that it should remove the extra space. In any case, it will always be possible to do it in your |
|
Superseded by #13616 |
|
@simurai where can I set now the hidden-inset option? |





This PR is similar to #10208 (Hide title bar on OS X) and contiues from #11790. It replaces the current "Use Custom Title Bar" checkbox with a "Title Bar" dropdown. It has the following options:
native(default)customadapts to themeshiddenNew! Only the traffic lights are shownNative
Custom
Hidden (new)
Benefits:
Be able to hide the title bar leaves more room for the editor and looks less cluttered. Also a package like the tool-bar could use the title bar's place instead.
Concerns:
When the tree-view is hidden, a vertical bar is shown to make sure the traffic lights don't overlap anything and that there is an area where the window can be dragged.
Affected packages:
/cc @brumm