Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Add floating mode for MacOS #126

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add floating mode for MacOS #126

wants to merge 3 commits into from

Conversation

yarray
Copy link

@yarray yarray commented Apr 18, 2020

Add options to make the window float over any (fullscreen) apps on MacOS:

  1. Add a "floating" config.
  2. Add a "Turn On Floating Mode" button in menu -> preferences. When click:
  3. Set "floating" to true, reload the app. The dock icon and the menu will be hidden, while the menu bar icon will appear. The window can overlay any app now.
  4. Add a "Turn Off Floating Mode" button in menu bar icon's menu. when click:
  5. Set "floating" to false. Reload the app. The app will function as normal.

The mode will be useful when a user wants to quickly view a doc. A floating mode will minimize distraction since it does not force jumping to another space.

This pull request will not affect the app's behavior unless a user clicks "Turn On Floating Mode".

@egoist
Copy link
Owner

egoist commented Apr 18, 2020

Maybe adding a "pin" icon (show it when hovering window header) on the top right corner of the window, and clicking on it to toggle "float" mode is more convenient 🤔

@yarray
Copy link
Author

yarray commented Apr 18, 2020

Maybe adding a "pin" icon (show it when hovering window header) on the top right corner of the window, and clicking on it to toggle "float" mode is more convenient 🤔

Sounds good. I may have a try. Not sure whether not relaunching will cause problems though.

@yarray
Copy link
Author

yarray commented Apr 19, 2020

@egoist I've add a pin button on the title bar. It could be more visually obvious but I think the convenience has been achieved.

截屏2020-04-19下午3 47 03

截屏2020-04-19下午3 50 02

Also I keep the relaunching behavior since I cannot reliably switch floating mode without relaunching.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants