Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows title bar #775

Merged
merged 8 commits into from
Jan 10, 2017
Merged

Windows title bar #775

merged 8 commits into from
Jan 10, 2017

Conversation

niik
Copy link
Member

@niik niik commented Jan 5, 2017

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
Copy link
Member Author

niik commented Jan 9, 2017

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.

Automatic positioning of icons
@niik niik changed the title [WIP] Windows title bar Windows title bar Jan 9, 2017
@niik
Copy link
Member Author

niik commented Jan 9, 2017

This is ready for review

@joshaber joshaber self-assigned this Jan 9, 2017
Copy link
Contributor

@joshaber joshaber left a comment

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);
}
}
}

This comment was marked as spam.

@@ -61,7 +53,7 @@
display: inline-block;
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.

@@ -71,12 +63,15 @@
box-shadow: none;
border-radius: 0;

color: #fff;
color: #a0a0a0;

This comment was marked as spam.

This comment was marked as spam.

@joshaber
Copy link
Contributor

joshaber commented Jan 9, 2017

(This presumably fixes #702.)

@niik
Copy link
Member Author

niik commented Jan 10, 2017

(This presumably fixes #702.)

Indeed, updated PR body

@niik
Copy link
Member Author

niik commented Jan 10, 2017

馃惃

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

None yet

2 participants