-
Notifications
You must be signed in to change notification settings - Fork 974
Conversation
01989e4
to
bb4db62
Compare
btw this needs a rebase on master when you get time |
dd23cbd
to
5a1299b
Compare
OK properly rebased and verified 😄 |
9303351
to
920c27f
Compare
bea276f
to
48d73bf
Compare
Just a heads up- this branch can be tested on Mac, BTW
|
7d3b488
to
d6199cd
Compare
@bsclifton The new look is really good and looks neat. Some observations:
|
Thanks for testing, @srirambv 😄
|
@clifton Would suggest a Ok/Cancel dialog than the notification bar. Goes along with the standard windows alert messages. This way the window remains as is and only applies the change after a restart is done. |
@srirambv These mini-screen captures are priceless. And addictive! @bsclifton I'm confused about #1. We never want to see the standard non-custom titlebar. That is the whole point of this effort. Am I missing something? Font size - we need to match the standard default in all cases - somehow copying the approach that WIN uses for it's view settings. Later we can try to support the user-overrides from the system. |
@bradleyrichter for 1, that is a completely acceptable answer 😄 I made it toggle-able just in case there were folks with accessibility requirements (which the custom menu may not work). We can always revisit that later though edit: this config option has now been removed |
e258902
to
37474ea
Compare
Looking a lot better than my last pass. A couple of things I noticed.
|
601904f
to
ecbf741
Compare
- Removed border on top since that now works; starting to finalize the X with Brad - Windows 7 fixes - fix button size - new svg for close - fix margin - color updates - updated naming in main.js; menubar text no longer selectable
- Caption buttons and border are now hidden when a window goes fullscreen - Fix context menu accelerator size (windows only)
- selection can be made left and right - menu can be popped up with up/down known issues (what's left) - storing the context menu's selected index in windowStore - properly handling up/down (changing selection) - handling submenus also includes: - small cleanup for custom titlebar in main.js - lint cleanup
Menu fixes - You can now hit enter to pick a selected menu item - Fixed bug where menu opened by keyboard was not clickable Cleanup - Added reducer property which retuns a menu minus the separator items - Moved wrappingClamp method into formatUtils
- Menu now sets default selection when you press ALT to show it - Menu now behaves properly when always displayed (auto-hide=false) - ALT and ESC now are properly handled; providing windows-like behavior (deselect and/or closing menu, etc) - Fix click problem with extension button (it was tagged as draggable) - Windows specific fixes for drag. Tested each area that was changed, comparing this build to 0.12.1 to make sure it's consistent. - menu now returns focus properly to active web frame - the pseudo click now sends over webContents (required for cut/copy) - Bumped up minimum viewport width to 640px for Windows only. Media query strips margin left of the brave button unless you're at 720px or more (again- windows only)
…from appState to windowState (not going to move it after talking w/ @bridiver).
Works well with URL bar always showing and also with title mode.
- capturing the browser's selection changes - converting the activeElement object to a selector - returning focus after menu is interacted with by: - using document.querySelectAll() to return focus to original element - executing window action which actually handles the menu action This commit also cleans up `main.js` by properly encapsulating the handlers required into a new method, `registerCustomTitlebarHandlers` cc: @bbondy
74c77ff
to
39d2b0c
Compare
Let's get this merged and do anything else as follow ups. Nice work on all of this 🎉 |
Changes done, only a few minor bugs open (see checklist below under known issues)
git rebase -i
to squash commits (if needed).Fixes #3036
Lots of changes; this PR:
It also includes:
getParentMenuDetails
methodAuditors
@bbondy @bridiver @bradleyrichter @Sh1d0w
Test Plan
Windows
Styles should match the mockup for the respective OS
Custom rendered menubar
Custom render caption buttons
Using menubar w/ the keyboard
Using menubar w/ the mouse
Other style changes
Misc things to try
Mac / Linux
NOTE: besides the min/max/close tests (which aren't runnable), there are no other automated tests. I'd like to create some, but webdriver tests on Windows are not working
Known issues (will be working through these)
Issues towards the top of each respective category are higher priority. Issues which are considered show-stoppers are bolded (please feel free to edit this comment).
Issues with the checkbox are FIXED (see follow up commits for fix)
functional issues
-webkit-app-region: drag;
style but isn't taking 100% height 😦style issues