Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
437 stars 22 forks source link

Option to have Preview always on top #46

Open filly82 opened 1 year ago

filly82 commented 1 year ago

I would love the option to control "Whether the window is always on top of other windows" aka "Always on Top" .. would that be possible? for both windowses of course

fertrig commented 1 year ago

It is possible. The Monarch Controller would need a checkbox "Preview always on top". When checked, the controller would send a message to the platform code. The platform code will then set the windows properties to be always on top. Each platform (macos, windows and linux) would implement this behavior.

On Windows: https://stackoverflow.com/questions/14989062/set-a-window-to-be-topmost

On macOS: https://stackoverflow.com/questions/27396957/keep-window-always-on-top