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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Borderless #27

Merged
merged 2 commits into from
Dec 13, 2015
Merged

Borderless #27

merged 2 commits into from
Dec 13, 2015

Conversation

luckydonald
Copy link
Member

I don’t like the window borders.

This is some idea which occurred me.

Luckydonald added 2 commits December 13, 2015 06:11
This is much code for nothing.
description goes here
@luckydonald
Copy link
Member Author

hm it included d2db761, from #26.

@luckydonald
Copy link
Member Author

It just looks so much better on the desktop.
bildschirmfoto 2015-12-13 um 06 38 56

bildschirmfoto 2015-12-13 um 06 01 05

Windows:
2015-12-13 18_33_04-greenshot

The sidebar is where to drag that window.
If you wanna close it, you can still use the menu or hotkeys.

@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2015

That's much better, especially on Windows. I'm running the app on a Mac so I wasn't paying much attention to it.

Thanks again @luckydonald! I've also made you a member of RobCoIndustries. Welcome!

@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2015

Since I already merged the other PR, this will just bring the one commit in. You'll want to make sure to start new branches off master next time. No big deal though!

rgbkrk added a commit that referenced this pull request Dec 13, 2015
@rgbkrk rgbkrk merged commit 4989fde into RobCoIndustries:master Dec 13, 2015
@luckydonald luckydonald deleted the borderless branch December 13, 2015 17:23
@luckydonald
Copy link
Member Author

I've also made you a member of RobCoIndustries. Welcome!

Thank you

@luckydonald
Copy link
Member Author

Strange, the members page doesn't list me.

@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2015

You'll have to accept the invitation by visiting https://github.com/RobCoIndustries.

screenshot 2015-12-13 12 05 53

@luckydonald
Copy link
Member Author

Oh, on top it was! I scrolled past it each and every time.
Funfact: I don't even know how to node.js.
I am more a python/django guy.
But 'eh. Here we go, lol.
(I am tempted to throw in the term 'YOLO'.)

@rgbkrk
Copy link
Member

rgbkrk commented Dec 13, 2015

Thanks for maximize! This is nice - I'm back home and free to play+code now.

@rgbkrk
Copy link
Member

rgbkrk commented Dec 14, 2015

Belated feedback (can become new issues or ignored 😉):

  • The fullscreen selection should change how it appears when activated vs. not
  • While you and I know to drag the sidebar, I'm not sure if others are going to pick up on that right away. Any ideas about cues we can make about the app being grabbable by the sidebar?

@luckydonald
Copy link
Member Author

About the second point I am actually concerned too.
I would like to imitate the OS's buttons
screen shot 2015-12-14 at 09 56 16
just more simple, and in the fitting pip boy color.
Then you get a normal bar on top to drag.

@luckydonald
Copy link
Member Author

Photoshop mockups:
Mac.
Mac Mockup - 729f8222-a166-11e5-9f0b-759ea06f146b kopie
Mac on Hover.
Mac Mockup, hover - 729f8222-a166-11e5-9f0b-759ea06f146b_2
Windows.
Windows Mockup - f2a6406c-a1c7-11e5-89df-de3fb0972249
edit:
I would probably make the mac buttons part of the navigation bar, so we don't loose map space.
On windows I can just lay the buttons over some small part in the top left corner of the map, so space is much more efficiently used there too.

@kitten
Copy link
Contributor

kitten commented Dec 14, 2015

@luckydonald and at this point I'm wondering if there's any worth left regarding a custom non-bordered window. Is it worth removing a system compliant feature which brings familiarity and intuitive behavior with it just so we don't have to care about that aspect design wise?

@luckydonald
Copy link
Member Author

The default window borders waist much space, and also Windows adds more border on top and at all sides.
Also, with this there will no menubar be rendered on windows.
moved here from #22

2015-12-11 00_24_17-pipboy
Also the menu bar (Edit, View, Window, Help) isn't hidden in Fullscreen mode... (edit: See #27)

@luckydonald
Copy link
Member Author

Draggable parts has to be set. See electron: -webkit-app-region
So another solution is to mark basically the whole window draggable, and exclude parts with -webkit-app-region: no-drag.
I was concerned that might later conflict with moving the map or something, as there the css has to be included every time.
A question of implicit vs explicit, turn it off vs turn it on.
(I was lazy so I chose to explicitly turn it on on only one element)

@kitten
Copy link
Contributor

kitten commented Dec 14, 2015

@luckydonald Fair enough. I think we might want to use a cursor for indicate that the window is draggable. Otherwise we just have to add -webkit-app-region: no-drag into the reset.css and that's it (?)

@luckydonald
Copy link
Member Author

We have to either

  • apply drag to the root and exclude buttons and movable parts later with no-drag

or

  • set only specific parts as drag and don't care about the rest (which defaults to no-drag)

The first has the benefit that you can drag everywhere where no input is, but needs more careful selection what to parts to include (e.g. selectable text etc.)

The second makes it easier for us to maintain, but will result in less draggable parts.

cursor is good, probably cursor: move? Cursor reference page
I am not sure what reset.css does, where it applies.

@luckydonald luckydonald mentioned this pull request Dec 14, 2015
5 tasks
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.

3 participants