Hide recording window when recording, and create tray icon (macOS)
richiemcilroy opened this issue Β· comments
On starting recording, hide the main Cap window.
Show a stop recording icon in the macOS menu bar tray.
On tray icon click, stop the recording.
This is currently required for macOS only.
Requirements
-Create menu bar tray icon. Use Cap logo as icon maybe? This can be changed later.
-When recording is active, change icon to a stop icon. Maybe use this icon from Lucide.
-When recording is active, hide main Cap app recording window (keep camera overlay window as it is)
You can use this guide to help you get started developing locally as quickly as possible.
/bounty $50
can you assign this to me.
/attempt #21
Options
This is all needed on mac maybe you should add a label "mac" on it @richiemcilroy.
@syedbarimanjan done!
Anyone have a WIP for this?
Anyone have a WIP for this?
I am working on it, will raise the pr.
/bounty $150
Upped the bounty to $150.
In case it's helpful to anyone: I've set up a wip here.
Still missing a few things:
- Tray should only be initialized on MacOS
- Clicking tray icon to stop recording doesn't sync the UI
- Doesn't respect the same "min 5 sec" rule as the frontend (maybe it shouldn't?)
- Haven't tested outside local mode, but based on the logging it seems to work correctly
All requirements added here
There's a quit and a dedicated show button. Left clicking the tray icon shows the main window as well.
Tray icon changes when you start or stop the recording.
When recording starts all windows except camera view get hidden.
Since handling the tray click event is done in the frontend, the UI reacts correctly.
I'm hoping later I can add the camera and microphone selectors to the tray menu as well.
All requirements added here
There's a quit and a dedicated show button. Left clicking the tray icon shows the main window as well.
Tray icon changes when you start or stop the recording.
When recording starts all windows except camera view get hidden.
Since handling the tray click event is done in the frontend, the UI reacts correctly.
I'm hoping later I can add the camera and microphone selectors to the tray menu as well.
Nice @ItsEeleeya - I'll check when I get to my desktop. If you add the mic / camera selectors there I'll add another $50 to the bounty
Nice @ItsEeleeya - I'll check when I get to my desktop. If you add the mic / camera selectors there I'll add another $50 to the bounty
If there are no problems with the current features then that'll probably be for tomorrow!
@ItsEeleeya I'd suggest you create a draft PR soon. Even with the current version of what you have
jemiluv8
It doesn't let me open another Pull Request as draft because it's already open
@richiemcilroy could you please turn the pull request to a draft?
Done @ItsEeleeya :)
/bounty $200
Solved with #22
@ItsEeleeya can you create a claim here please?
/approve
Sorry @ItsEeleeya it's bugging I think - you may need to do /claim first with the PR linked
Reached out to Algora's support
Sorry @ItsEeleeya it's bugging I think - you may need to do /claim first with the PR linked
Reached out to Algora's support
Oh sorry do you mean comment that inside the PR or here? Like <slash>claim #22
/tip $200 @ItsEeleeya
@ItsEeleeya: You just got a $200 tip! π Complete your Algora onboarding to collect your payment.
Should be done now @ItsEeleeya :) thanks for your help! feel free to tackle another if you want to claim more
Thank you, will do!
I learnt quite a bit of Rust doing this even though I've been making some private and experimental Tauri apps.
It's definitely not priority but I'd like to open some suggestions later on for the UI (the main window frame and design) and a dedicated settings window/view (I think I saw some WIP setting related stuff?).
Hey @richiemcilroy
Could you please send me a DM on Twitter? @ItsEeleeya
ππ @ItsEeleeya has been awarded $200! ππ