hidden icon indicating copy to clipboard operation
hidden copied to clipboard

Feature: automatically expand collapse when mouse hovers on the menu bar

Open p-z-l opened this issue 3 years ago • 8 comments

What's this PR do?

  • Automatically expand or collapse when mouse hovers on the menu bar
  • Stops collapse if the mouse clicked inside the menu bar area before leaving
  • Works with multiple screens

What are the relevant Git tickets?

#115 was a very similar PR also by me but it was closed because the code and commit history is messy and it has merge conflicts with the develop branch.

Any background context you want to provide? (if appropriate)

Behavior:

  1. Expands the menu bar when the mouse is inside the menu bar area
  2. When the mouse leaves menu bar area and did not click on the menu bar, status bar collapses

p-z-l avatar May 31 '21 11:05 p-z-l

We need more test. How it work with new "full menu bar" feature.Did you resolve the problem with checking Menu opening? I will keep this for the future release. The next release already has many features and bugs fixed, better to release it now. Btw, we should have better name for this feature, something that easy to understand without explanation.

viettrungphan avatar Jun 01 '21 03:06 viettrungphan

I'm thinking of identifying a window as menu window by checking if:

  • a window's top edge equals to the status bar bottom edge
  • a window doesn't stick to any edges of the screen
  • a window has kCGWindowLayer > 100 and kCGWindowLayer < 150
    Also, I'm not sure what do you mean by full menu bar feature? If you're referring to the always hide feature, I'm not seeing any problem with that.

p-z-l avatar Jun 01 '21 08:06 p-z-l

I think the implementation of https://github.com/dwarvesf/hidden/issues/182 is going to be easier if this is merged. Thanks for your effort!

validatedev avatar Nov 24 '21 10:11 validatedev

This is a great feature and something I'm keen to see as I have had to revert to not auto-collapsing given it's not a great UX when the bar auto-collapses after X seconds but you are still using/viewing a menu bar item's dropdown. @p-z-l Is this likely to be ready for a release soon? Thanks!

aab203 avatar Dec 10 '21 01:12 aab203

Waiting for this feature release!

kevindiu avatar Feb 12 '22 13:02 kevindiu

Waiting for this feature release!

Sorry guys for the long wait :(, I got a lot of things irl that needs to be sorted out. I will resume work on this right after I got my OS and Xcode updated

p-z-l avatar Feb 12 '22 17:02 p-z-l

NP! We didn't pay you anything and we appreciate your time and your work. Enjoy your life first :)

kevindiu avatar Mar 03 '22 14:03 kevindiu