Skip to content

Windows title bar - #775

Merged
joshaber merged 8 commits into
masterfrom
windows-title-bar
Jan 10, 2017
Merged

joshaber merged 8 commits into
masterfrom
windows-title-bar

Conversation

@niik

@niik niik commented Jan 5, 2017 •

Copy link
Copy Markdown
Member

Unfortunately one of the Chrome updates broke our inline title bar on Windows. I couldn't find any way of getting the title bar buttons to work short of removing -webkit-app-region: drag from the toolbar.

I would have loved to keep it inline but instead of spending time and fighting this now I think slapping a title bar on it is a reasonable way forward. It also makes life a little bit easier for us since all platform now have the same amount of horizontal space for the toolbar buttons (minus the app menu button on non-Darwin). This is how it looks currently (cropped to fit issue width)

image

Not the greatest looking title bar ever but we can work on that.

Future things we could explore here is moving the menu button up into the title bar or even exploding the menu into individual top level menu items with one button for each in the title bar but that's outside of the scope of this PR. Similar to how PS does it 👇

image

One downside of this is that our differently colored sidebar section of the toolbar feels less sparkly now. I'll put this on my list for things for me and @donokuda to chat about at the hack house.

TODO

  • Verify that this still works in the welcome flow
  • Try out a narrower title bar style

Fixes #702

@niik

niik commented Jan 9, 2017

Copy link
Copy Markdown
Member Author

Future things we could explore here is moving the menu button up into the title bar or even exploding the menu into individual top level menu items with one button for each in the title bar but that's outside of the scope of this PR.

☝️ something like 👇

image

@donokuda Food for thought, let's not tackle it in this PR though but let's play around with it next week. In this mock I dropped the differently colored sidebar section of the toolbar because I feel like it's getting to be a bit too much going on up there which is a shame because without the title bar it looks fabulous.

niik added 2 commits January 9, 2017 11:26
Automatic positioning of icons
@niik niik changed the title [WIP] Windows title bar Windows title bar Jan 9, 2017
@niik

niik commented Jan 9, 2017

Copy link
Copy Markdown
Member Author

This is ready for review

@joshaber joshaber self-assigned this Jan 9, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting. I'd be nice to gain some of that horizontal space back from the toolbar.

margin-top: calc(var(--win32-title-bar-height) * -1);
}
}
} No newline at end of file

This comment was marked as spam.

Comment thread app/styles/ui/window/_title-bar.scss Outdated
position: relative;
width: 45px;
height: 29px;
height: calc(var(--win32-title-bar-height) - 1px);

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

border-radius: 0;

color: #fff;
color: #a0a0a0;

This comment was marked as spam.

This comment was marked as spam.

@joshaber

joshaber commented Jan 9, 2017

Copy link
Copy Markdown
Contributor

(This presumably fixes #702.)

@niik

niik commented Jan 10, 2017

Copy link
Copy Markdown
Member Author

(This presumably fixes #702.)

Indeed, updated PR body

@niik

niik commented Jan 10, 2017

Copy link
Copy Markdown
Member Author

🐨

@joshaber
joshaber merged commit 89d7905 into master Jan 10, 2017
@joshaber
joshaber deleted the windows-title-bar branch January 10, 2017 16:24
@niik niik mentioned this pull request Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants