mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #1100 from johankwarnmarksymphony/screen-share-indicator
fix: screen-share indicator zoomed in
This commit is contained in:
commit
a60d73f66c
@ -1029,6 +1029,8 @@ export class WindowHandler {
|
|||||||
if (!this.screenSharingIndicatorWindow || !windowExists(this.screenSharingIndicatorWindow)) {
|
if (!this.screenSharingIndicatorWindow || !windowExists(this.screenSharingIndicatorWindow)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.screenSharingIndicatorWindow.webContents.setZoomFactor(1);
|
||||||
|
this.screenSharingIndicatorWindow.webContents.setVisualZoomLevelLimits(1, 1);
|
||||||
this.screenSharingIndicatorWindow.webContents.send('screen-sharing-indicator-data', { id, streamId });
|
this.screenSharingIndicatorWindow.webContents.send('screen-sharing-indicator-data', { id, streamId });
|
||||||
});
|
});
|
||||||
const stopScreenSharing = (_event, indicatorId) => {
|
const stopScreenSharing = (_event, indicatorId) => {
|
||||||
@ -1261,6 +1263,11 @@ export class WindowHandler {
|
|||||||
if (!focusedWindow || !windowExists(focusedWindow)) {
|
if (!focusedWindow || !windowExists(focusedWindow)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (focusedWindow.getTitle() === 'Screen Sharing Indicator - Symphony') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// electron/lib/browser/api/menu-item-roles.js row 159
|
// electron/lib/browser/api/menu-item-roles.js row 159
|
||||||
const currentZoomLevel = focusedWindow.webContents.getZoomLevel();
|
const currentZoomLevel = focusedWindow.webContents.getZoomLevel();
|
||||||
focusedWindow.webContents.setZoomLevel(currentZoomLevel + 0.5);
|
focusedWindow.webContents.setZoomLevel(currentZoomLevel + 0.5);
|
||||||
|
Loading…
Reference in New Issue
Block a user