Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDA-4070 Presence status on macOS #1738

Merged
merged 4 commits into from
Mar 1, 2023

Conversation

sbenmoussati
Copy link
Contributor

Description

Adding presence status capabilities on macOS

*
* @param count {number}
*/
public updateSystemTrayPresence = (): void => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding sys tray presence (req. for macOS, windows benefits from it)


// Flags can be read more here https://www.electronjs.org/docs/latest/api/browser-window#winsetthumbarbuttonsbuttons-windows

export class PresenceStatus {
private presenceStatus: IStatusBadge = {
status: EPresenceStatus.AVAILABLE,
status: EPresenceStatus.NO_PRESENCE,
Copy link
Contributor Author

@sbenmoussati sbenmoussati Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, no presence is set. We wait the client to provide current user presence.

@@ -37,9 +38,19 @@ export class PresenceStatus {

public getCurrentTray = () => this.tray.current;

public destroyCurrentTray = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

destroying tray icon while closing SDA.

@@ -71,7 +82,15 @@ export class PresenceStatus {
place === 'tray' ? 'out-of-office-tray.png' : 'out-of-office.png'
}`;
break;

case EPresenceStatus.IN_A_MEETING:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding support for meetings

@@ -455,6 +458,12 @@ export class WindowHandler {
mainEvents.publish('maximize');
}
this.mainWindow.show();
initSysTray();
if (isMac) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS: listening for theme changes (light & dark)

Copy link
Contributor

@NguyenTranHoangSym NguyenTranHoangSym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's have this be a thing 🧐

@sbenmoussati sbenmoussati merged commit 722a477 into finos:main Mar 1, 2023
sbenmoussati added a commit to sbenmoussati/SymphonyElectron that referenced this pull request Mar 28, 2023
* SDA-4070 Presence status on macOS

* bugfix

* SDA-4070 Presence status on macOS

* SDA-4070 Presence status on macOS
NguyenTranHoangSym pushed a commit to NguyenTranHoangSym/SymphonyElectron that referenced this pull request Sep 5, 2023
* SDA-4070 Presence status on macOS

* bugfix

* SDA-4070 Presence status on macOS

* SDA-4070 Presence status on macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants